Add base logic for syncing

@alexef https://github.com/eea/flis.flip/pull/7 if that's true :)