Log all InAppBrowser events in its test page.

And adds a test for pages that redirect.