Oops, fixed compiler warning/error introduced in last commit.
Support for transforming/encoding revisions during replication

This enables encryption of documents on the server, for example.
Based on a patch from Alan McKean; thanks!
Fixes #253