Update cache.py

Added support for TASTYPIE_DEFAULT_FORMATS. Assumes TASTYPIE_DEFAULT_FORMATS[0] if no format is specified and TASTYPIE_DEFAULT_FORMATS exists.