Refactored hook subsystem

* Allowing hook-specific namespaces (modules)
* Less restrictive