Removes unused variables
Removes explicit timeout inside Transport::ConnectToBootstrapEndpoint

As it is a property of the Connection::Connect operation
More constructors for EndpointPair

Also changes formatting in BEH_API_GetAvailableEndpoint
Connection::on_connect_ now called with success if kTemporary

If disconnection observed in Connection::OnHandleTick handler.
Fixes a possible memory leak

When a promise is assigned to in a thread, the thread
which is waiting on the future must wait for the assignment to
finish before the promise is destroyed by leaving the
scope.
Adds few assertions to places which shouldn't happen

Also minor style changes.
Adds lock inside ManagedConnections::StartNewTransport

The idle_transports_ member variable was concurrently accessed
by OnConnection{Added,Lost}Slot.
Replaces std::bind with lambda expression

Debugger shows better information this way
Wrapping Connection 'on_connect' handler to strand again

Also pleases Lint
Merge pull request #40 from inetic/MAID-366-crash-in-parallel-receive-test

Maid 366 crash in parallel receive test