Reimplemented the singleton channel so as to minimize contention between threads.

Along with some unit testing.