Setting up the server and handlers