AMENDED AND RESTATED CREDIT AGREEMENT Dated as of December 21, 2011 among POWERSECURE INTERNATIONAL, INC., as the Borrower, CITIBANK, N.A., as Administrative Agent, and The Other Lenders Party Hereto