AMENDED AND RESTATED CREDIT AGREEMENT Dated as of June 27, 2011 among SABA SOFTWARE, INC., as borrower the Subsidiary Guarantors party hereto and WELLS FARGO BANK, NATIONAL ASSOCIATION, as Lender