[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
Very similar function as `getMapLayerForBodId` just above. Could make sense to refactor that to have one function for both.