many changes to ensure zmq does not block.  Added gevent support as well