Added additional bad input error handling.

Change-Id: I1959bbdd7735efbc7110cd6ef22e29deadd4ea41
Reviewed-on: http://review.couchbase.org/37489
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Correct flush issues.

Corrected issue when handling flush REST response.
Additionally removed the test as it is unreliable
due to not flush being async, in addition to not
fitting within the constraints of the new testing
setup.

Change-Id: I8da906d07869fc9d191cc3db9030999130b69150
Reviewed-on: http://review.couchbase.org/37490
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Added support for Node 0.11.13.

Updated to nan 1.20.
Corrected slight incompatabilities with libuv.

Change-Id: Iae131a203885554a2184717253e1ec368d36a93a
Reviewed-on: http://review.couchbase.org/38418
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Handle flush results correctly

as described in MB-11154 flush can result either in a 200 or a 201 HTTP
status, both of which need to be handled accordingly. The suggested
method is:

1. create a marker document
2. issue flush
3. if HTTP response == 200 flush finished correctly
4. if HTTP response == 201 flush is still running
5. poll the marker doc until it is gone to be sure flush is finished

Change-Id: I8d30fb6f76414d15dad68726477b1a14270d13f9
Reviewed-on: http://review.couchbase.org/38412
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Philipp Fehre <philipp@couchbase.com>
Updated to libcouchbase 2.4.0.

Change-Id: I08e50b59da9d6f546a4cedf699050cc6b447b88c
Reviewed-on: http://review.couchbase.org/38419
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Implement SDK 2.0 API.

Changed name of a few methods.
Implemented support for DSNs.
Support for SSL.
Bootstrap based connection event.

Change-Id: I5ebaee8a61f9cd9a0e7630d5cf909b79322b4b57
JSCBC-119: Allow Function objects as map/reduce values.

Iterate through the list of views and their map/reduce
functions and convert any Function objects to their string
representations first.

Change-Id: I059056452996e6e12a4514ac04b0ba3f26d3652d
Add support for spatial view queries.

Change-Id: I05f2ad7ae14219a9491ee0ca434e14f38715f013
Update constructor to not defaulty throw on connect error.

Originally, the constructor would assign a connect callback which
threw, even if the user did not want this to be the case.  The
logic has been updated such that any unexpected errors inside the
constructor will throw, but the connect event will not.

Change-Id: I4a5f58ebd0f38a58653ab5f090d49d8db1602f8a
Increase test timeouts.

Increased timeouts to increase chance of
tests being successful when executed against
a loaded cluster.

Change-Id: Ifbad3cd58775576d3180a11121a4abefa9259540