Moved server code to its own folder and added in client code.