Code written for the Axeda M2M Hackathon in Boston, May 2013