Allow custom frame to have query params

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.