Pymat zmq

This is the main ZMQ branch rebased onto the current master. The previous ZMQ branch is deleted.