This changeset refactors the MemcachedConnection class.

It also breaks out certain large blocks into their own methods
to make it better readable and easier for the JIT to inline
the code.

Change-Id: I3369606afeef00b50740e54c01a78e89682cade1
Reviewed-on: http://review.couchbase.org/30416
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>