Control and Communication for Demand Response with Thermostatically Controlled Loads