Senior Secured Note and Warrant Purchase Agreement