Added interfaces so that NetMQ can be mocked

Added interfaces so that NetMQ can be mocked