Partial normalisation of hooks.txt

Follow-up to If43cafb5. Almost complete. Needs another scan.
Added TODO where work is needed. I'll create documentation bugs for these
after the last scan.

Change-Id: I16a7bc03be71d1c907393c2a0748bf2150828bed
Merge "Partial normalisation of hooks.txt"