refactored save multiple stock out function to send broadcast after saving stock out objects
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...
0.9.0
removed unused $log module
add ccu report to pending sync list if device is offline
added removeRecord(tableName, recordUuid) function to storageService.
updated stock-out broadcast to add to pending sync list if device is offline
added background on device online status change. Refs item:458
triggers background syncing on start up if device/app can make remote connections Refs item:458
updated stock out broadcast to update pending sync record  Refs item:458
replaced undefined variable  Refs item:458
updated stock out broadcast to send sms after attempting to sync and syncing failed! Refs item:458
updated sync-service and storage service tests to test current state of services Refs item:458
refactored sync-service after  adding background sync and added TODOs Refs item:458
added small test for ccuBreakdownReportFactory Refs item:458
refactored ccuBreakdownFactory.saveAndSend report to send sms alert if online sync fails Refs item:458