fix the echo server, and move it under tcp/ module

This fixes the echo server and moves it under `tcp/`, since that is the component under test.

Also moves it to port 9998 in case the developer is also running the SOCKS sample, which uses port 9999.