Add import statements to resolve referenced types using protogen.exe

Debugging tweaks and allows connecting via TCP

Fix test client.

Add test client