Add appcache for offline support

This would fix #4.