fix(loadTemplate): refactor base url handling

This is a breaking change to all implementors of the Loader interface.
They must now implement loadTemplate.