Added file cache and set it as the default persistent cache method

Faster than the FMDB cache and also seems to fit more tiles in given bytes. Also added byte size limit for both db and file cache.