removed debug line
wrapped thermostat setpoint action
in a DoDeviceOperation call.  This ensures that exceptions are properly dealt with.
moved DoDeviceOperations to extension methods