Added Revision Collator

Ported Revision Collator from the iOS code (https://github.com/couchbase/couchbase-lite-ios/blob/master/Source/CBL_Revision.m).

This change is inline with the fix for https://github.com/couchbase/couchbase-lite-java-core/issues/135.