Added support for system-wide hooks.

7 files changed