[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
Minor: A little overkill as it's used in only one place? (AFAIK). Could use array access in the offline service.