Zmq

* Change id generation algorithm
* Move define functions from ims to ums