Make clustered update_seq sort correctly
Make clustered update_seq sort correctly

The CouchDB replicator gets confused when it sees an update sequence
of "100-" follow "99-" as it's treated as a string (where CouchDB uses
integers). This commit changes the format to [integer(), binary()]
which sort correctly.

The revised regular expression matches both the old and new update_seq
pattern. It is anchored at the end of the string and ignores any
trailing quotation marks and right brackets (which are present when
the replicator passes an update_seq as a string). It then greedily
matches all consecutive base64 (url-encoded variant) characters.

BugzID: 10986

fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb