When changing sync fn or importing, update channels of each leaf rev

If a document is in conflict, each conflicting revision needs to have
its channels updated, not just the default one.
Implemented DELETE /db/_session to log out the current session

Fixes #258