Updated the ISecurityManager interface and moved the manager hooks for better extensibility.