support snapshot comparison

Change-Id: Iecdcb42ce2b8061d7851d22928f55c1e3c04a11b
Reviewed-on: http://review.couchbase.org/28427
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>