added zmqEventEmitter, heartbeat publisher and tests