Issue #1014: Add support for plugging in different authorization services
Added tests