Provide LCB_LOG_ERR define

This is useful for LOG* macros which accept a level base as a parameter.
Unfortunately 'ERROR' is a reserved word on Win32, thus messing up the
macro concatenation.

Change-Id: I958cf86def412bfd4588867d4e48469663be542d
Reviewed-on: http://review.couchbase.org/31818
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Add 'connection_utils': Utilities for connection init

Change-Id: I3ef2278cc0de18c050cf9acddfba2af04f40d676
Reviewed-on: http://review.couchbase.org/31819
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
connect.c: Add some logging output

Change-Id: I1f5b3fe8b451b15789b4a58efb6d9419b87173e7
Reviewed-on: http://review.couchbase.org/31820
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
testutil: Add helper functions for distributing keys

These functions will create a set of keys that map evenly across all
existing servers, thus guaranteeing that each sever will be hit at least
once when the client operates on these keys

Change-Id: Ic9acd54e210360c964e48a63b827cd56211fa569
Reviewed-on: http://review.couchbase.org/31821
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>