Changes feed shouldn't show doc as deleted if it has a live branch
Make db.GetChangeLog checkpoint the changesWriter (fixes unit tests)

There were occasional race-condition failures in TestAllDocs, apparently due to
the channel-log not having been rewritten by the time GetChangeLog was
called.
Fixes #277 (but haven't been able to verify it on my machine)