Fixed up a lot of stuff. Pushed out ConnectionHandler to its own file,
and implemented it on the client side. Switched over to SSL and started
implementing that.