Added connection manager.

Dispatching messages and notifications will be based on this class.
This class will be able to store connections, and return connections
based on (for example) uin.