Instantiates settings in order to remove all the godawful sets of parentheses from server.js.
Adds middleware for sessions.