msie: documentMode detection to replace userAgent sniffing

To close issue https://github.com/angular/angular.js/issues/4113 and replace PR https://github.com/angular/angular.js/pull/4115, https://github.com/angular/angular.js/pull/4116, https://github.com/angular/angular.js/pull/4117, https://github.com/angular/angular.js/pull/4118, https://github.com/angular/angular.js/pull/4119