Server recieving messages.
Logic is there for the rest of server, but it's untested.