Exposing `app` in app.js for usage in functional tests.
Some linting and indentation.
Updated installed package.json so that it reflects new testing commands.