Hooks can now be defined in each app's conf/config.php

Each app's config can now have its own [Hooks] section, which makes it
easier to make hooks configurable via settings forms like the other
settings of an app.