Electric Imp controlled thermostat