CLASS A COMMON STOCK PURCHASE AGREEMENT by and among KiOR, Inc., and Gates Ventures, LLC October 18, 2013