SERIES B CONVERTIBLE PREFERRED STOCK AND WARRANT PURCHASE AGREEMENT