COMMON STOCK AND WARRANT PURCHASE AGREEMENT between KFX, INC. and dated as of August 30, 2002