[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
return value of int is ignored all the time. So we don't need to return anything.