Fix win32 build (declaration and code mix)

Change-Id: Id1b9c93df95e28f905732367ef049c5589f2597c
Reviewed-on: http://review.couchbase.org/38631
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
check-all: allow to control logging level from commandline

Change-Id: I8f506e0e491c1eb0df48ca668ad9f9035671b5dd
t_smoke: try to print actual error received

Change-Id: I67f23e0cc20117be6faab4473c70c093dfdb7370
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
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
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

Change-Id: Ic7fe876e9d772aead2d2c5669869f90099b6776c

cbc view: set content-type to application/json

Change-Id: Ic0568d7b74d4aa66140b7253ff2b91ac5f63e4ee
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.

Change-Id: Idc4f2c9a65aed7cbdda8cbc942f96852f9a58aa2
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
Remove old manpage directory

Change-Id: I4e85828bf9d08223897be9f243aa5b16729fe73a
Add cbcrc too..

Change-Id: I9034ca73ec78299898c030c8a9f8a048ea242485