WIP Appcache

Initial attempt to use appcache for an offline version.