Update README and refactor app to put HTTP logic inside the server