CONVERTIBLE NOTE AND WARRANT PURCHASE AGREEMENT