Added server and client stuff

Shamelessly copied chat server example code and renamed a few variables.