CB-3747 Fix back button having different dismiss logic from the close button.

Also made the IAB close when the owner page is navigated (implemented
onReset).
CB-4858 Convert relative URLs to absolute URLs in JS
CB-4858 - Run IAB methods on the UI thread.