remove todo
fix: permission hierarchy was the other way around
remove references to non-existing classes, bootstrapify
code reuse
improve exception messages
fix StackOverflowError
Merge pull request #761 from dennishendriksen/master

Fix: permission hierarchy was the other way around + small fixes