Cleaned up Main.

Changed how the client joins the server, included some error handling.

created a parse message function, replaces returnUser and returnCommand
functions, helped get rid of a lot of nested if's and while's.
I still don't have the hang of Git.