WIP: [[nomerge]] adapt to location changes happening outside of Angular

Just opening for Travis for now. Still need to determine if this is best approach to problem described in #6976.
should we maybe fix that? in case tests want to verify that manual changes to window.location / invocations of the history api work