CREDIT AGREEMENT by and among SUMTOTAL SYSTEMS, INC. as Borrower, THE LENDERS THAT ARE SIGNATORIES HERETO as the Lenders, and WELLS FARGO FOOTHILL, INC. as the Arranger and Administrative Agent Dated as of October 4, 2005