Added two function extensions, remoteTemplateLocationResolver and remoteTemplateIdResolver that are called, respectively, before and after a remote template is loaded.