Finished implementing the server. See #3
Merge.