watch: refactoring required for the client watch

This change precedes the client watch implementation and contains
refactoring with some minor fixes. The intention is to reuse more
code.

The main parts are:
- v23/syncbase/nosql: rename Stream to ScanStream and extract
  common Stream interface from ScanStream and ResultStream
  (also WatchStream is coming)
- move Watch methods from server/nosql/database.go to
  server/nosql/database_watch.go
- move watch log helpers from watchable/util.go to
  watchable/watcher.go
- move the WatchLogBatch() func from vsync/ to watchable/
  together with the test

Change-Id: Iaab18a1ec6dd218e85284bd994ed71e766feab26
16 files changed
tree: a35ba0c0a9d9e2e48ad22e25a68d6f71218e4f48
  1. v23/
  2. x/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. VERSION