expose various go internals as a DEBUG command
aggressively clean up client
move command parsing and hostname lookups into the socket routine