I/O threads

Add support for I/O threads to the transport interface, with implementation for ZeroMQ.
(I/O threads are not used with nanomsg).