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
Reviewed-on: http://review.couchbase.org/38420
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
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
Reviewed-on: http://review.couchbase.org/38423
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Add support for spatial view queries.

Change-Id: I05f2ad7ae14219a9491ee0ca434e14f38715f013
Reviewed-on: http://review.couchbase.org/37073
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
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
Reviewed-on: http://review.couchbase.org/38731
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Increase test timeouts.

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

Change-Id: Ifbad3cd58775576d3180a11121a4abefa9259540
Reviewed-on: http://review.couchbase.org/38732
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Adjust timeouts a bit more.

Change-Id: Iad20c80c815683ee545fab433b7912d215d3b767
Reviewed-on: http://review.couchbase.org/38755
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Release 2.0.0-dp1

Change-Id: Id587235f5c3ac8fbce992c6762ab347cec2e4787
Reviewed-on: http://review.couchbase.org/38754
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Correct use of deprecated function in example.

Change-Id: I2cf5915e02ae2915c875f62f85c46afb0bed32cc