Divides server.js into distinct sections. Moves routes to a separate file. Adds a few comments.