STOCK PURCHASE AGREEMENT Between EMDEON CORPORATION and SAGE SOFTWARE, INC. Dated as of August 8, 2006