Configures application to use proper options based on environment variable

Dynamically loads configuation options into config.js based on
process.env.NODE_ENV variable
Fixes incorrect environment variable name in config.js
Configures ejs to be the default view engine and configures the index controller to render the index.ejs view