Start to stub out the results display.

* Move friendlyTestUrl to routes.
* Add function to extract the test ID from the URL (but still allowing
  descriptive URLs).
* Index tests under the scorecard by ID for fetching from the top level.