[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
Is there an easy function to get from maxZoom to minRes? (yes, I know... ;) )