FORM OF PREFERRED STOCK AND WARRANT PURCHASE AGREEMENT