TCP backend is almost ready for tests.

Implementation still has lack of some features such as NetworkManager dispatching and thread-safe guarantees in all needed places.