Refactoring. Added Logging. Moving to CZMQ API.