Allow to set minimum and maximum size of payload

Change-Id: I910d576aaed9b9474001ff4b28d8fdb6798c2190
Reviewed-on: http://review.couchbase.org/26748
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>