test($sce): ie8 fix for entire file

Ref: https://github.com/angular/angular.js/pull/4221#/issuecomment-25515813

Closes #4221
Merge branch 'master' of https://github.com/angular/angular.js
componentizd!
fix($location): prevent infinite digest error in IE7

Refactored `replacedUrl` to store the new URL on both
`location.replace` and setting `location.href` directly to handle
delays in the actual location value change in IE.

Closes #2802
Merge branch 'master' of https://github.com/angular/angular.js
componentizd!