MB-10014: Missing parameter in item creation

Error: Assuming wrong value for bySeqno while
creating an item instance causing the assertion
to fail, whenever vbucketId is 0.

Fix: Add the missing parameter (which is 0 for
ext_len, when ext_meta is NULL) while creating
item instance.

Change-Id: I6f2294eff26c509c6a72e01db451d2b7a55cefda
Reviewed-on: http://review.couchbase.org/33147
Tested-by: abhinav dangeti <abhinav@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Add more upr info log messages for better debugging

Change-Id: I21a802b8f041376c1df6b138173c0053b15e0843
Make sure upr mutation/deletion messages by_seqno's increase

Change-Id: I6837d68fdfc798c5e4203080f271c62137acaaf4
Only transition from backfill once all items are sent

The old code allowed an upr stream to transition to in memory once
the backfill task completed even if not all of the backfill items
were sent. This change waits until all of the items are put onto
the wire.

Change-Id: I3f35c5063994743400f87d160125da373b5aaaed
Decrement backfillRemaining when we send the item

Previously we decremented backfillRemaining when the item was
queued to be sent. This change decrements backfillRemaining when
the item is actually sent.

Change-Id: I3785b15e412409481ee5defcb83517b35656e831
Calculate backfill remaining more accurately

We now have a couchstore api that will allow us to count a range
of sequence numbers to count.

Change-Id: I65e95372d7652345fa6ee4e4c0722475ac88d61e
Properly set the upr cursor offset

Change-Id: I35a40000c33bd778d09a6118f3ef0a005aaf7518
Add a stat to allow upr takeover estimates

Change-Id: I3de6c22c1b399daa69f22c0db626580a21f08810