fix($animate): ensure guarded animations consider AJAX requests upon bootstrap

Prior to this fix when an Angular application is bootstrapped it would only
place an animation guard to prevent animations from running when the application
starts for the first two digest cycles. However, if any controllers or directives,
that are executed upon boostrap, trigger any remote code to be downloaded (via $http)
then the guard does not put that into consideration. This fix now properly addresses
that circumstance and removes the guard once all outbound HTTP requests are complete
when an Angular application is bootstrapped.

Closes #8275
Closes #5262
What I mean is, you've changed ngRoute to request the templates using $templateRequest rather than using plain ol $http --- so other modules that do the same thing would have to change to use $templateRequest if it's available, afaik --- so we won't see the benefits of disabling animations for initial requests with those third party libraries unless they update to use this, no?