xively updates

this consist of 2 files one for agent code and one for device code