Add TcpConnectionEndpoint class.

This class can be used to simulate an endpoint to the TcpConnection
class (and is used in its tests).
Export TcpConnectionEndpoint class.
Complete TcpConnection documentation and tests.