Add iframe support for test runner

This is to add test runner an optional feature of running tests in an iframe while keeping running tests in a top-level browsing context as default.
It makes the test runner work smoothly in Web Runtime, and benefits reftests and manual tests running on mobile devices by saving tab/window switching operations