Added some unit tests on file configuration options.
Added some comments.
refactored HTTP exceptions
Merge branch 'develop' into dev/plugin-oauth
Fix login flow and improve code structure

- The "link" statement for discovering OAuth login URIs is now part of an HTTP request (was inside the HTML <head>)
- Admin credentials are now written in the configuration file