[misc] Make sure files are closed
[cleanup] Fixed some warnings
[cleanup] Applied codestyle
Issue #1014: Add support for plugging in different authorization services
Base work, adding the framework which allows adding authorization services