Adds "on connection added" functor to ManagedConnections

Also adds test case for it
Removes debug output
Merge pull request #43 from inetic/MAID-311-get-available-endpoint-issue

Adds "on connection added" functor to ManagedConnections