Add appcache support
Add unit test harness