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
updated sync-service.syncItem to sync to remote db without creating local pouch db first. Refs item:344
removed clearing of local pouchdb during clear storage Refs item:344
removed clearing of local pouchdb during clear storage Refs item:344
added confirm dialog to stock out broadcast  Refs item:380
removed unused order type template  Refs item:380
added CORS whitelist to manifest.json
Merge branch 'upstream-develop' into feature/stockout-broadcast-confirm
minor fixes
added stock out broadcast when online refs item:380
added stock out broadcast when online refs item:380
Merge branch 'upstream-develop' into feature/stockout-broadcast-confirm
Merge branch 'upstream-develop' into feature/stockout-broadcast-confirm

Conflicts:
	app/manifest.json
Merge pull request #211 from jofomah/feature/stockout-broadcast-confirm

Feature/stockout broadcast confirm