preliminary zeromq stat socket support

Adding a zeromq publish socket for emitting events for messages sent and received, to work in conjunction with a stats app.