Add sanity checks for start/end seqno's when doing a stream request

Return an ERANGE error if the start and end sequence numbers do not
make sense for a given request.

Change-Id: I9859defd587b748a17175b95e66a20adcac65eca
Reviewed-on: http://review.couchbase.org/31586
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>