New automation commands and fix for module setup button

Hi, Gene.
While playing with my thermostats I've added automation commands "Thermostat.OperatingStateGet" and "Thermostat.OperatingStateReport". Sadly my thermostats doesn't support THERMOSTAT_OPERATING_STATE command class, but it may be useful for somebody else.

Also I've fixed the problem with modules "Setup" button not working on Control page. It was due to async loading of modules widgets, so when the event has been binded modules html was not in DOM yet.