Refactor handling of Drupal hooks where profile installer has to detect and invoke them.

This branch aims to simplify handling of Drupal hooks by standardizing on a single approach. It should cut out a bunch of confusing properties and extraneous, duplicative logic.