Tiny utility for registering and invoking hooks. Supports (numeric) priority-ordered and time-restricted execution of hooks.