Updated to use persistent storage
Added appcache so the config can work offline