SERIES A PREFERRED STOCK AND WARRANT PURCHASE AGREEMENT