Bug fix: formats used the same disk path with different queues.

Solved by adding format name to the disk cache path. Refactored DiskCache and Cache so that DiskCache doesn't handle its own path and receives it from Cache instead.