Change window location when popups are block

In the event of window.open being stopped by a popup blocker the message handler now changes the window.location, thus providing graceful degradation of navigation messages.
This might affect the test spec which uses a mock window.