Add extension methods for IUserIdentity.
Add SecurityHooks and refactor ModuleSecurity.
Merge pull request #944 from tischlda/security

Security extensions