CONVERTIBLE SECURED PROMISSORY NOTE AND WARRANT PURCHASE AGREEMENT