STOCK PURCHASE AGREEMENT between RENTECH, INC., as Seller, and REN HOLDING CORPORATION, as Buyer, Dated as of August 1, 2005