Add initial implementation of connection manager
Merge remote-tracking branch 'origin/master'