libvbucket: Substitute localhost marker in the config

This marker might appear since server release 2.5 as part of CCCP

More info:
* http://review.couchbase.org/29996
* http://review.couchbase.org/30067

This patch in libvbucket project: http://review.couchbase.org/30834

Change-Id: I2a27a89501dd72563f7aa7e7da911e174c4565a8
Reviewed-on: http://review.couchbase.org/30315
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Isolate HTTP bootstrapping code

Change-Id: Ibba093ec65d35b86295292447ea7f931c2258e52
Reviewed-on: http://review.couchbase.org/30797
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Refactor internal configuration struct

It introduces API for pluggable bootstrap workflows

Change-Id: I1742b31089bfe5422b88a015b8891c4d20b57589
Reviewed-on: http://review.couchbase.org/30782
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Extract function to pick node from backup list

* move external loop into the function
* allow to specify default port number

Change-Id: I90de13394a6becc1fe1baf7ed740af92df2466e6
CCBC-234 Bootstrap with CCCP

Change-Id: I96e91180f06b87e92ac1acee2c44dead1a2503af
CCBC-234 Use CCCP protocol to update vbucket configuration

Change-Id: I1fb24cee6ad9c6c4c77f4ac9f192215b846fe488
CCBC-234 Add lcb_cntl command to determine source of configuration

Change-Id: I933558ffe4a20eedca6e03ee7bf3d2dfe0e11ab0