local forage refactor, added appcache