18 rewrite zmq sockets

Reworked ZMQ sockets.