QUADRAMED CORPORATION AMENDED AND RESTATED RESTRICTED STOCK AGREEMENT