adds view clean up after background syncing refs item:754
improves code readability
Merge branch 'feature/enable-app-config-edit-via-double-tap' into feature/database-view-cleanup

Conflicts:
	app/scripts/services/background-sync-service.js
Merge branch 'upstream-develop' into feature/database-view-cleanup
Merge pull request #491 from jofomah/feature/database-view-cleanup

adds view clean up after background syncing refs item:754