Added refreshing of state when attaching to an existing browser.

Fixed AngularJS issue with Internet Explorer where AngularJS redefines how anchor links work.