[WIP] Add connection manager

This is my [WIP] proposal for the connection manager. I'd like to have a first review on this.

Targets #542.
The socket name will _always_ be hardcoded (or, at least a default value will be).