Provide lcb_cntl interface

Change-Id: I33111a456d9eda0f7f71e944398302af7f864e5d
Reviewed-on: http://review.couchbase.org/27661
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Convert cbc(1) and cbcrc(4) manpages to asciidoc

Change-Id: Ic5ab411ffdfe4163123c27fe09f2bb39176776c7
Reviewed-on: http://review.couchbase.org/27843
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Mention environment variables in libcouchbase(3) page

It is quite important feature to duplicate in both libcouchbase(3) and
cbc(1) man pages

Change-Id: Icc3973a148a4354604e226732771fd6fc044338f
Reviewed-on: http://review.couchbase.org/27844
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Add more markup visible for HTML

Change-Id: Ied8f04d166fbd26e00e72a22bd29ff39a8556087
Reviewed-on: http://review.couchbase.org/27850
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix include directives in manpages

Use <libcouchbase/couchbase.h> instead of <libcouchbase.h>

Change-Id: I4284820f2ab1b75283d19cf44b95605ea6e188c2
Reviewed-on: http://review.couchbase.org/27851
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Append Couchbase CSS to HTML documentation

Change-Id: Id6f8c156bc7cca43cbf969cf492cd4dd547cfeaf
Reviewed-on: http://review.couchbase.org/27861
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Add more links to manpages

Change-Id: If3921930056c0e30c8fc4c556656209b4c5cf1fd
Reviewed-on: http://review.couchbase.org/27860
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Various fixes for NMakefile

- Include 'win32' before the normal 'include'
- Remove deleted files (behavior.c)
- Add new files (genhash.c, hashtable.c)

Change-Id: I2220fe7875ae5cd1ddd064dea3fba6be7b43980e
Reviewed-on: http://review.couchbase.org/27878
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Add VERSION to dist

Change-Id: I188c1394e7653d29f710b6303bf32c66a5f62774
Reviewed-on: http://review.couchbase.org/27902
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Improvements for CMakeLists

- Allow some variables at the top
- Trim long lines
- Provided proper install directory (similar to our zip dists)
- Prefix implib with 'lib' as well, so we have 'libcouchbase.lib', not
  'libcouchbase.dll'

Change-Id: I3ce7cf11575a3687f215a6a10d81f8eb1c24a417
Reviewed-on: http://review.couchbase.org/27873
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
fixup: include cntl.h

Change-Id: I92200eb0d0e5abc6786bc5e4234b1ea2592031d9
Migrate to Mock 0.6

The new mock uses a synchronous request/response protocol over
line-delimited JSON objects.

The mock includes functionality for replica read as well as observe,
though this is not present in our unit tests (the actual tests for using
those features will be implemented later on).

Change-Id: Ibe41ed3955d44daf7f675dda92a3813bd81f5c18
CCBC-145 Durability operations

This changeset inevitably contains some of the basis for an
'lcb_check' command to be implemented atop observe.

Change-Id: I81d39955a2a987b7327b0bc780d0c45ed1455fc0
Refactor timeout semantics

Timeouts are scheduled automatically by the connection subsystem, with
the user logic controlling the specific "delaying" of the timeouts.

Change-Id: Ie125c3584f54700d830a8732a5b8a5fe481518c2
Some fixes in the IOCP plugin regarding timeouts

- 0 is a valid timeout value. Return INFINITE if there is no pending
  timer

- Set is_active flag on timer to 0 before invoking callback. The
  callback may remove the timer (which is already popped) and re-add it
  again.

Change-Id: I1cd5c41f510347c339439adf0d3d17bf40fcfa7b
Include <stdio> if iocp logging is enabled

Change-Id: I4fb38ab38fc43320822fafb3a83cd32b3e78de00
Add libuv plugin

As standalone binaries or headers of libuv aren't widely available, the
source is currently included in the header file with a special
"build-all" header that includes the necessary translation units.

See also: http://review.couchbase.org/27740

Change-Id: I2589dee2647b15f06f02c4329de993b1c3552f23
Add some missing errors to win_errno_sock

Change-Id: Id3e31bbf86ca12f22064db197147a4985146e2ae
Provide setting for default non-views HTTP timeout

Change-Id: I3e9e2f4d2f1ebbe3eef77b8f333cd565792893bc
Set defaults directly rather than calling the setters

in lcb_create
Change-Id: I27f195cf6e0667d14f01b24c3c49d54b12c85136