Thermostat control agent that balances a user's budget with comfort preferences