(Messily) implemented networking protocol
Fixed new line bug in messaging