First working copy of sync in a while. Dirty code, but first unit tests
passes