Improving the mock.js constructor to better model the real one.

The callback on connection is a critical feature of the real
connection and was missing, so we've added it.
Still room for improvement.

Change-Id: I3bbda1c98af2a465947c985405cfb4eb48a07d2f
Reviewed-on: http://review.couchbase.org/39431
Reviewed-by: Alex McFadyen <couchbase@acmconsulting.eu>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Correct use of deprecated function in example.

Change-Id: I2cf5915e02ae2915c875f62f85c46afb0bed32cc
Reviewed-on: http://review.couchbase.org/39147
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
JSCBC-121: Rename shutdown to disconnect.

Change-Id: Iea2625c4fb0877a528c42093fb12ef000c10c45c
JSCBC-122: Rename all instances of DSN to ConnStr.

Change-Id: I4cbc30edb33bfc072ebc725979ee0e46a03267b6
JSCBC-124: Implement remaining libcouchbase configuration options.

Change-Id: I81c4ed4234e6b949d92a5e8ad927a6e87fe771ba
Fluent Interface (WIP)

Change-Id: Ia6c95307739d082029cb687293c730ae8db237a0
Refactor (WIP)

Change-Id: I5aadcce35eae3bb0faac77819265ca0ac5280e7d
Mass 2.0 Refactor (WIP)

Change-Id: I13b9bdb8b5f4564ac277da87a98f9f63e36850ab