Read data in one gulp for server

- Otherwise we have bottlenecks as there is quite a bit of overhead for
  processing the data several small chunks at a time

Change-Id: I4e90d97274c78c128e2b34910abf62602919896c
Reviewed-on: http://review.couchbase.org/27438
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Use more detailed connection status

Change-Id: I48a32167402ce3ef144b306846ac68420f519c0e
Reviewed-on: http://review.couchbase.org/27440
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix conversion error for call 'cbc view -c ...'

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid

Change-Id: I4a45f8989b1f477e2a3f6f430f2d9902aa8ef047
Reviewed-on: http://review.couchbase.org/27765
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>