Rework the NIO implementation to use conduits fully; add the ability to link channels to threads.