Now this is getting mysterious.

See https://gerrit.wikimedia.org/r/#/c/23159/ for some pre-history.

This patchset addresses some of Siebrand's comments,
* Rename hooks to align with the event names
* Caught a few typos, bugs and oversights
* lowercase TRUE convention

Change-Id: I47d5b83f88a5406fec31698f1c276c05828ce49c