Add new sqlite cache

New SQLite based cache with one db per level and last_modified column.
Improved cache clean-up (new remove_all option).