Lazy load connection manager.

Starting a thread on module import is a bad idea, particularly when a lot of the module use case doesn't depend on that thread being alive. This commit makes the global connection thread be lazy started when required.