Server side go code for the IoT demo