Support the Service-Worker-Allowed header
This allows a site to customize Service Worker's path restriction
policy, which by default means a script can only control a scope within
the directory of the script.
Service-Worker-Allowed is an optional HTTP response header for a Service
Worker script. The value is a URL that is the maximum allowed scope that
the script can control. If it's a relative URL, it's relative to the
script URL. For example, when included in the response for a script at
"http://www.example.com/resources/sw.js", a value of ".." means that
sw.js can control a max scope of "/", rather than the default max scope
of "resources/".
As spec'd at:
https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#update-algorithm
Blink-side test:
https://codereview.chromium.org/868973004/
BUG=436747
Review URL: https://codereview.chromium.org/866403002
Cr-Commit-Position: refs/heads/master@{#313263}