Adding the ability to require authentication to the app. Its currently turned off because I need to sort out issues with how to authenticate during test runs.

- RMUR
Some authentication refactoring.

- RMUR