Allow the custom frame to have query parameters.

There were two issues here:
* The `mime.lookup` call was returning test/octate because it didn't
  recognize the extension '.html?foo=bar
* If the route includes the query params, matchURL cannot properly match
  it.