Do not duplicate error, reported in request context

Change-Id: Iabc40ee73dce82c547114bad9db397a7ea7536b8
Reviewed-on: http://review.couchbase.org/29918
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
CCBC-169 refactor HTTP layer to allow restart requests

Change-Id: Ia358ae5593552ccfded4530eaf25c17f908e5bc6
Reviewed-on: http://review.couchbase.org/29919
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
CCBC-255 Expose LCB_MAX_ERROR to allow user-defined codes

Change-Id: I335411a6f90c0b6e6215e249c6024471575b3fbe
Reviewed-on: http://review.couchbase.org/29920
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Refactor not-my-vbucket handling into own function

This patch is intended to be cosmetic only, and should not change any
behavior

Change-Id: I647fc90056ef8ebe648aeaa37ad73e94a2fb651b
If not retrying a NOT_MY_VBUCKET response, dispatch it

Change-Id: Iccc0fc7db983f90c5926dc3f4ae4c9bb707669bf
Fix strerror unit test

Should reflect the new LCB_MAX_ERROR value

Change-Id: Ibac2fc53737d48d8fdf6042f247e2db5999214ed
CCBC-288: Fail NOT_MY_VBUCKET responses on timeout

Unfortunately we don't have a proper way of verifying this for now. The
mock should be updated to simulate more realistic rebalance scenarios

Change-Id: I6b66b69552abe68545086be0b1a6e8d058f7138a
Pass lcb_t to map_error

This can be used to allow for more elaborate error handling schemes

Change-Id: Ic5a362f88be76e2bcd8a4e371809453afe07a487
Allow hooks for mapping server codes to errors

This also helps handle sane behavior if a new error code is introduced,
or allow user-defined logging when a specific error code is received.

Change-Id: I6530aa7efceec2b7c26ddc14edab581dd48f3f6e
CCBC-204: Don't use config cache with memcached buckets

Change-Id: Ie355f428f42d09962787da8a8e58ad02509fdab1