Really sloppy version of client/server socket interfaces. A ton of ugly comments