Switch to the new template loaders from Djblets.

This updates our list of template loaders to use the new
conditional_cached (which only caches if DEBUG = False) and
namespaced_app_dirs (which allows app module prefixes for paths).

Reviewed at https://reviews.reviewboard.org/r/6092/