Sketch of kvs sync.
Sketch of kvs scan-changes by refacotring scan-keys.