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