Remove copy/paste socket code from E-stlye plugins

Change-Id: I0a56e67c2b62ede4485301c6f9a09ceba3f6a9ab
Reviewed-on: http://review.couchbase.org/34591
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
sllist: Add insert_sorted()

Change-Id: I0a70a4be1fae8184b0eb56125e89f2c3b0f239c2
Reviewed-on: http://review.couchbase.org/34664
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Use macro for vbucket config handle

This will allow us to more smoothly transition between later refactors
of the mc_CMDQUEUE object where the vbucket config is no longer part of
lcb_t itself. Only subsystems which are intended to remain relatively
untouched have been given the new macro usage; whereas systems which
will be removed or rewritten will continue to use the 'old' variant.

Change-Id: I56817267c98c36b8c096337b9912859b3644aeda
Reviewed-on: http://review.couchbase.org/34595
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
t_serverops: use lcb_wait

Change-Id: Ia578adb8ab07fdf6d02c94f27c002e838213ed0b
Reviewed-on: http://review.couchbase.org/34596
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Define 'transfer' field for protoctx

This allows the protocol context itself to assign itself to the
connection object, with a hook to handle scenarios where the underlying
storage for the connection has changed

Change-Id: I850f574651c302d67586a1e0eedd9c6ed1292e2a
lcbio: Implement 'senderr'

Change-Id: I836b39bd8c9540ab3bc4eccb2a051ee8b8e87942
server_negotiate: remove boilerplate user assignments

This commit allows the server_negotiate code to assign *itself* to the
connection object, so that its association is transparent to the
relevant bits of the calling code.

Change-Id: I52b399237caca78f82c04fab940d1978cd3cec4c
Add header aliasing vbucket functions to shorter names

Change-Id: I874c0fc4c09535aab5eb67dd51a9bd4fbbd0bd6c
Convert initial structures over to MC

This will disable some other operation code which will be added in
subequent commits. The purpose is to display the overall structure in
the code which will be used for the operations and servers handling.

Change-Id: I00403cf7f6e98afa924edb821b2b6cee33de7512
Add callback getters/setters

Change-Id: Ibedec749511585d99c11b0750b66a1ebb03f0dac
Remove older packet code

This removes the older packet handling code, to be replaced by their
newer variants. Note that this only removes structural,
non-command-related code.

Change-Id: Icb2cc7731e7c655145a81dfa15baad80f34287a1
Re-import handler.c

Change-Id: I1ba41e41320105346984c08117c3e8e0f18e4e28
Re-Import CCCP/Getconfig

Change-Id: I9987a3a4227e45f1c980ed76fffd2542d6984595
Re-Import: store.c

Change-Id: Iea59932c9ff7b84b99f0747570053cd5d9db2fda
Re-Import: arithmetic.c

Change-Id: Ia44ef8e239d69c74fde8cdd13107c705d1448c95
Re-import remove.c

Change-Id: If0cb1e547598115dd5e5ebcfc5839207230859ba
Re-import observe

Change-Id: Ie49357696b94175252ee8c0029f51b3f699d0ba9
Re-import get.c

Change-Id: Ie35449ab6c26d5b53577c5094219390b5343ca74
Re-import touch.c

Change-Id: I13337aea39f6369cd938e6ba1e41e964498a0d62
Import stats.c

Change-Id: I838f5c10a1ffd32be136ae106cb0f6489fab10be