GOCBC-146: Use bufio and independent buffers for memd body reading.
GOCBC-146: Use bufio and independent buffers for memd body reading.

This actually improves performance in most cases (but creates
some additional GC pressure, though this could be resolved in
a future commit by using a pool of value buffers).  This is
also a prerequisite change for offloading JSON decoding to the
caller goroutines rather than doing it on the IO goroutines.

Change-Id: I59ae39b824255797cabda34eb1db32b6c88d16a7
Reviewed-on: http://review.couchbase.org/72059
Reviewed-by: Mark Nunberg <dab05a0fe859c5cb93882b2a75a0d613501b07be@couchbase.com>
Tested-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>

brett19/gocbcore