Sets up environment, routes, and views