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
Adds mutex around std::future::set_value in two tests

This is another way of making sure promise won't get
destroyed by going out of scope before promise::set_value
finishes.

The tests are BEH_API_SimpleSend and FUNC_API_ParallelSend.
Merge pull request #44 from inetic/MAID-420-crash-in-send-tests

MAID-420 Crash in send tests
Removed use of GetRandomPort in socket_test.cc
Accommodate changed NodeId functions.
Merge branch 'routing_v2' of github.com:Fraser999/MaidSafe-RUDP into routing_v2
Merge pull request #45 from inetic/MAID-454-get-rid-of-GetRandomPort

Removed use of GetRandomPort in socket_test.cc
Started to update API (WIP).
Further updates (WIP).
Merge remote-tracking branch 'upstream/next' into routing_v2
Further changes (WIP).
Further updates (WIP).