Code from the talk Implementing the Internet of Things with Windows Azure from TechEd New Zealand 2013