Fix mistakes from previous commits (OMS-281)
Implement inherit_permissions field (OMS-281)

Improve plugin loading error reporting
Implement transient object permissions inheritance (OMS-281)
Implement permissions inheritance setting (OMS-281)
Cleanup (OMS-281)