added updateAppConfigFrom remote Refs item:468
added sync-service function that updated local copy of a record from remote db.
clears app config from cache after update from remote. refs item:458
Merge branch 'feature/intermittent-background-sync' into feature/remotely-update-appconfig

Conflicts:
	app/scripts/services/sync-service.js
refactored canConnect() to make persistent attempts refs item:458
replaced persistent background sync attempt with background sync refs item:458
refactored canConnect to make multiple attempts at getting connection status refs item:458
deprecated persistentBackgroundSync() refs item:458
changed max connection attempts to 5. refs item:458
refactored background sync on startup to perform update of local app config copy first refs item:458
added function that updates local copy of app config first then triggers BG sync refs item:458
refactored BG sync on connection status change to perform app config update first refs item:458
Merge branch 'upstream-develop' into feature/remotely-update-appconfig
updated sync service test
Merge pull request #339 from jofomah/feature/remotely-update-appconfig

Feature/remotely update appconfig