Issue #1014: Add support for plugging in different authorization services
Cleanup, bugfixes, documentation...