contiki support in xively library
fix bugs in xively