Add hooks section / use named hooks in examples. Fixes #1173

There really was no real hooks section in the current version of the index, so I've added a section and described named hooks there. Not quite sure where it fits in the flow of the page.