Create server.py

This file receives most of the requests from the client and responds to them. It interacts with the tornado server and database server. It is responsible for sending the chat messages and and updated to both desktop and web clients.