AMENDED AND RESTATED STOCK PURCHASE AGREEMENT by and among Openwave Systems Inc. and the Sellers as defined in this Agreement dated as of November 9, 2005