added zmq XPUB/XSUB proxy; big refactoring: separated REST and zmq stuff into their own modules