Concatenates and registers AngularJS templates in the $templateCache.