[WIP] Appcache

Initial attempt to use appcache for an offline version.
Should this function be documented ?