zmq as socket layer

Context is actually a singleton. So maybe it can be a global var?