[WIP] Appcache

Offline version.
Tips:
- Manage cache in Chrome: chrome://appcache-internals/
The next 2 functions could check for existence and if init was successful before calling the function. I know, this complicates stuff with callback. Your call.