[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
Other resources work with CORS? (like the tiles...) Can we discuss this tomorrow?