Added TCP stream

- Added TCP stream
- Added a snapshot transfer debug routine
Revert "Added TCP stream"

This reverts commit cf14957d7161a87e9c368f4ddbba5cd2537cc522.
Final changes to balancing