Initial connection between thermostat gui and backend