check-all: allow to control logging level from commandline

Change-Id: I8f506e0e491c1eb0df48ca668ad9f9035671b5dd
Reviewed-on: http://review.couchbase.org/38682
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
cmake: Fix download handling

Sometimes cmake's download handling gets stuck on various platforms.
This abstracts downloading into its own module and employs either wget
or powershell to perform the actual download.

Change-Id: I1dd01b2b8559455549d03d088d13e8b509d89550
Reviewed-on: http://review.couchbase.org/38681
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
CCBC-455: Re-add cbcrc

This readds the configuration file feature for the cbc tools. This also
adds a new command called 'write-config' which can dump the current
configuration to its destination file.

Change-Id: I840316adf78daf8c84e7fd346bc4cc90053d8fc0
Reviewed-on: http://review.couchbase.org/38684
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
cliopts (several minor changes. see description)

- use the Option::stmp member to store the backing char* for the default
  value:
  The whole reason stmp exists in the first place is so that the storage
  space for the default value is scoped with the actual options object, so
  use it for that.

- cliopts: Support --foo=bar style
  I don't know why I just realized I couldn't do this. but the fix is
  easy

- allow to hide options
  Some options are deprecated but should still be supported in case people
  rely on old behavior or forget to remember the new ones.

Change-Id: I6eda14f9d9ac7a3193e71127b514da2a59d48584
Reviewed-on: http://review.couchbase.org/38685
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
cbc: several minor changes (see description)

- Use 'expiry' everywhere instead of 'ttl'

- Allow to specify HTTP request body via stdin

- Don't make password mandatory for admin handles
  Some commands like flush don't need a password (or can use the
  bucket-level credentials)

- stats output should go to stdout, not stderr
  Makes it more easy to grep stuff

- support symlink invocation

Change-Id: I8987bfef7e949840816e034df3b9218098095295
Reviewed-on: http://review.couchbase.org/38686
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
pillowfight: Option renaming

- Rename the confusing '--iterations' option to '--batch-size'. The
  option controls the batch size, not how many times the workload
  iterates.

- Hide the `-Q` or `--num-instances` parameter. It is confusing and
  doesn't really gain much. The only thing that should matter in a
  threaded workload where each instance is locked is the number of threads
  executing

- Add the `--num-cycles` parameter to indicate how many iterations (in
  the real sense) the loop should run.

Note that the old options are still supported, but are left undocumented

Change-Id: Idc4f2c9a65aed7cbdda8cbc942f96852f9a58aa2
Reviewed-on: http://review.couchbase.org/38687
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
t_smoke: try to print actual error received

Change-Id: I67f23e0cc20117be6faab4473c70c093dfdb7370
Document cbc with markdown/ronn for manpages

ronn is a tool to generate manpages from markdown. The advantage in
placing our documentation are markdown is that it's also easily readable
from github as well as Doxygen.

This version documents the new cbc very extensively.

Change-Id: I26dabb8d4f944caa1300c9c4ede9be11594eddc6
bc_http: Enhance 'always-on' mode:

- Throttle the reconnection attempt when the nodelist has been cycled
- Don't reconnect when no configuration exists (if the nodelist has
  ended)

Change-Id: Iade455ceb9ef2cc5e3c2e0e81ac99f2e6bc9d289