Move out all the threading code into a new class.

Named runnables, threading and I/O reactor maintainance are now a part
of the new io::chamber_t class.