removed debugging controller code.
refactored save multiple stock out function to send broadcast after saving stock out objects
added integrity checks to storage service functions
updated storage service tests
updated sync status to be based on actual sync status.
added integrity checks to storage service
refactored sync status to sync service
added tests for sync service
Merge branch 'upstream-develop' into feature/intermittent-background-sync

Conflicts:
	app/scripts/controllers/stockcount.js
updated i18n mock
added test when saving stock out data
Merge pull request #327 from jofomah/feature/intermittent-background-sync

Feature/intermittent background sync
changed return data format for insertBatch function
fixed multiple stock out broadcast
Merge pull request #325 from musamusa/bug/multi-stock-out-broadcast-sync

refactored save multiple stock out function to send broadcast after savi...
Merge branch 'develop' into refactor/add-more-unit-test

Conflicts:
	app/scripts/controllers/stock-out-broadcast.js
updated stock out broadcast with new return data format