[WO-267] move sync code into its own module
Merge pull request #38 from whiteout-io/dev/refactor-sync

[WO-267] move sync code into its own module