REVOLVING CREDIT and WARRANT PURCHASE AGREEMENT