Add ZMQ publisher.

And some cosmetic changes.