More fine-grained approach to caching versioned files

We now distinguish on a per-file basis between versioned files (which
can be cached forever) and other files. This approach is also easier to
adapt to static file management systems other than Django's own.