Cleanup of TCP server
Made interfaces for TCP server and Protocols
Sync start/stop byte and length logics