Added auto updating support when location is change by the browser.

Added more integration tests.