AGREEMENT AND PLAN OF MERGER by and among QUADRAMED CORPORATION, BAVARIA HOLDINGS INC. and BAVARIA MERGER SUB, INC. Dated as of December 7, 2009