Implemented API changes

Added generic types in CanaryAIManager
Added PermissionCheckHook to all MEssageReceivers