Fixes to heartbeats and NEB socket status logging

Switch to a 32-bit sequence number in heartbeats.

Future versions of ZeroMQ get rid of zmq_event_t, and we're already
doing the right thing, just wrapping it up in zmq_event_t. Get rid
of this weird opaque structure and future proof the socket status
logging code.