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
Reviewed-on: http://review.couchbase.org/30784
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
CCBC-234 Use CCCP protocol to update vbucket configuration

Change-Id: I1fb24cee6ad9c6c4c77f4ac9f192215b846fe488
Reviewed-on: http://review.couchbase.org/30317
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>