[feat][wip] compilable version of the xively with

the new layer communication system based on the event dispatcher
next step will fix all the warnings and bugs and test the publish/subscribe
functionality against the local server