Multiple types, multiple hooks

Some hooks can easily be installed for multiple types. Also, some
commands should be able to receive multiple hooks and act on them.