Server code for my Ludum Dare 27 entry.