ThermoEnergy Corporation Loan Agreement (as amended through August 18, 2014)