Added an implementation of dynamic buffers for sending messages.
Added support to compile against 0mq v2 and v3.
Added more logging.