Started work on server, and more details on protocol