This reverts commit 03627aa84d90f7f1d8d62f160997b783fdf9eaa4.
Closes #7958
Useful for avoiding doing an actual XHR during testing. Part of the solution for #4051 (Other part is a Karma plugin that will create the template cache). Closes #7940