Implemented `templateLoader()` to fix missing template errors.

Templates where loaded asynchronously and the page rendering
didn't wait until all templates where loaded.