FORM OF STOCK PURCHASE AND STOCKHOLDER AGREEMENT