Support the caches logic introduced in Django 1.7.
Support Django's cached template loader.
Closes #660