Web UI: Add chrome://test data source for testing JS modules

- Add a test data source that serves files from chrome://test
- Autogenerate HTML responses containing a single
<script type="module"> with src set to a requested JS file at runtime.
Request these responses by preloading
chrome://test?module=JS_TEST_FILE.js
- Remaining dependencies, other than mocha and mocha adapter, can
be imported via the JS test module, instead of using |extraLibraries|.
- Map requests for chrome://test URLs to the appropriate Web UI
controller using a new webuiHost parameter for tests.

Bug: 968804
Change-Id: I5b409bb54da5611be68fe590176edec3c7b668e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700294
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678925}
8 files changed