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
Merge branch 'upstream-develop' into feature/intermittent-background-sync

Conflicts:
	app/scripts/services/stock-out-broadcast-factory.js
	app/scripts/services/sync-service.js
merged upstream and resolved conflict Refs item:458
minor fix to ccu report breakdown so it works perfectly when offline or could not send sms Refs item:458
corrected removedData documentation
refactored persistent background sync attempt to syncService function refs item:458
refactored sync attempt on app start up to sync service function refs item:458
refactored background syncing into two functions, single sync attempt and multiple sync attempts refs item:458