Wrote basic wire protocol for client to server and data objects.