Reindex pages on template changes.

This uses the LinkUpdateCompleted hook to update the search index after
all links have been updated.

This unfortunately doesn't get to make good use of the bulk api....

Change-Id: I900b510b4403c38b26293ce27fec7c0d4ba93512
Merge "Reindex pages on template changes."