separate syncing into task
fix test sync and constants
fix test sync for real
Merge branch 'master' into tasks
first full version of sync task implementation including resuming