Allow hooks for specific matcher groups

Fixes #143.

Hooks without groups are always executed. Matchers execute the global hooks (the ones lacking groups) along with the hooks in their group.