Add support for multiple hooks (of different types) to PluginManager, and add support for regex flags to _RegexHook