Save links to the search index

We can count these links during page updates to find page weights.

Bug: 56798

Note that this doesn't solve the bug - we still have to deploy this change,
rebuild all the indexes, and then deploy the counting solution.

Change-Id: Idd10a413fedfbfeed55d013faf6706329e0bec02
Merge "Save links to the search index"