[Android] Enable WebAPK to have multiple intent filters

This CL:
- Changes AndroidManifest.xml MoTemplate to support multiple intent filters
- Moves the MoTemplate configuration to external .json files
- Adds logic to rewrite URLs from deep links to the scope URL's scheme and host
  name. This handles the case of:
  1) The WebAPK has intent filters for several TLDs (e.g.
https://maps.google.ca,
     https://maps.google.fr, ...)
  2) It is desired to change the TLD of the intent URL to '.com' so that all
     incoming intent URLs fall under one service worker.

BUG=734131,734136

Review-Url: https://codereview.chromium.org/2956193002
Cr-Commit-Position: refs/heads/master@{#490275}
10 files changed