Wrote most of client.cpp, needs some more error checking. Also need to construct meaningful strings to send to the protected server. However it has most of it and compiles