use notifications API to listen for remote state changes and redownload state when notified
add delay to avoid File scanning incomplete error
Merge branch 'master' into feature/real_time_sync

Conflicts:
	src/client/fsio.js
	src/shared/fsio_api.js
Move deviceId to state, test notification API
Use state id for notifications call so notifications aren't missed
Add retrieveJournalEntries
removed debugging leftovers, only retrieve journals for files
retry two times with delays if we get file scanning incomplete error when downloading the state
fix: use last notification id if notification response had no notification
add suport for journal_id_gt and journal_id_lt parameters
renamed initalSync event to appInit event, made emitting of startRealTimeSync event more consistent
use flatMapFirst as a failsafe when we only want one event
renamed loadCurrentRemoteState to resetStateFromRemote
fixed tests after refactorings
only emit notification event when response includes actual notification
remove copypaste code by extracting function
remove useless delay since the potential error is now handled elsewhere
retrieve new journal entries when notification indicates something has changed
Merge branch 'master' into feature/real_time_sync
only download modified items