Refactored zmq codec and example from Jyre