Added connect window to client.
On the server side, the command handling has been slightly tweaked to
improve error handling and disallow empty usernames.