[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
Minor: Similar code as in print directive. Possibility to refactor?