Implement site engagement sorting of TopSites behind a flag.

This CL introduces a feature flag which, when enabled, sources URLs for
the NTP TopSites tiles from the site engagement service instead of using
the history-based "frecency" approach. Using engagement allows sites
that are infrequently navigated to but heavily used to be prioritised in
TopSites.

Currently, engagement sorting of TopSites is limited to sourcing origins
only, as the site engagement service only records engagement per origin.
Future work will overcome this limitation by integrating engagement as a
component in the frecency scoring in VisitSegmentDatabase, rather than
as a completely separate component.

BUG=764218

Change-Id: I13d2072e3d1dd94684fafcbd5e5e991af9e43d00
Reviewed-on: https://chromium-review.googlesource.com/691497
Reviewed-by: Ben Wells <[email protected]>
Reviewed-by: Sylvain Defresne <[email protected]>
Reviewed-by: Marc Treib <[email protected]>
Reviewed-by: Mikel Astiz <[email protected]>
Commit-Queue: Dominick Ng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#509587}
26 files changed