Thermostats and control systems