minor fixes Refs item:344
added fix that makes clear storage to wait for all promises to resolve before changing state Refs item:344
added fix that waits appConfig is completed before state change. Refs item:344