STOCK AND NOTE PURCHASE AGREEMENT among COMPASS GROUP DIVERSIFIED HOLDINGS LLC, as Buyer, COMPASS GROUP INVESTMENTS, INC. and COMPASS MEDICAL MATTRESSES PARTNERS, LP as Seller Dated as of July 31, 2006