Make username==bucket if user is NULL

Change-Id: I076670cbc77660eb13d65bae39eec4069aa2970d
Reviewed-on: http://review.couchbase.org/32770
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Add CCCP Support

CCCP Support is introduced with a new creation structure (v2) which
allows the specification of explicit memcached nodes.

Unfortunately the tests still need to adjust as it will try to connect
to the default port -- and the mock being none the wiser, isn't setting
the explicit 'mchosts' parameter. The workaround is to disable any local
Couchbase cluster before running the tests.

Change-Id: I5fff6e2346a4fde2ed7fe8191d3b40bd470671db
Reviewed-on: http://review.couchbase.org/31428
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fixups for mock with CCCP

Change-Id: Ib9e146cdb8996e9159774bd0985fe8bfe183b65d
Reviewed-on: http://review.couchbase.org/32547
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Test confmon for CCCP

Change-Id: Ie9bbc4ebe2f7bd25675593e3076d7274b69c9681
Reviewed-on: http://review.couchbase.org/32658
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
bootstrap: Only invoke config_callback directly once

Afterwards, use an async handle

Change-Id: Ib18a804b48d934c0e27009a84e6ffe570c4ced32
Reviewed-on: http://review.couchbase.org/32548
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
bc_http: Remove unused variable

Change-Id: I429fdc4877de02584844144f773a9bc7eaf79c0f
Reviewed-on: http://review.couchbase.org/32628
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Cleanup timer code

Change-Id: Ie4ed6b96bab1f11f3e6d81c5b44818ce2252e87f
Reviewed-on: http://review.couchbase.org/32629
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
bootstrap: Check before scheduling async

Fixes a memory leak

Change-Id: Ie6de8904f52e0cc3452616d50f53b4680b2b5484
Reviewed-on: http://review.couchbase.org/32630
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fixup copying in MockResponse

This copies pointers and causes accidental double-frees

Change-Id: If35ef6e62fae56a23eeeb8cf352e09765f2f791b
Reviewed-on: http://review.couchbase.org/32633
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
bc_http: Delay timer when stream bytes have arrived

Change-Id: I08e568bdf4457a647d534cfc940edde91c7604b0
Reviewed-on: http://review.couchbase.org/32635
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Don't include win_stdint if not on MSVC

Change-Id: I17ff761d92479026354669e9cb7c99f7eff4a752
Reviewed-on: http://review.couchbase.org/32585
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Set VERSION.in variable names correctly

Change-Id: I2aeb4ba05091872ed609f9bd5a9458cd23432f49
Reviewed-on: http://review.couchbase.org/32557
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Decouple lcb_N_t from versioning info

Change-Id: Ie63ac7f13b31ebefbff7efb47aed8075f2aa8904
Reviewed-on: http://review.couchbase.org/32558
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>