Replaced use of ERROR with ERR to fix Windows build error.

ERROR is defined to 0 inside of Windows headers for use
with the Windows API. This causes a conflict with our use
 of ERROR.

Change-Id: Ic15563420dd78e41240e4053a54b18ea6967c61f
Reviewed-on: http://review.couchbase.org/28718
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Leonid Barenblit <lbarenblit@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Fix build warnings on Windows.

Removed 2 unused local variables and made integer to boolean conversion explicit.

Change-Id: I259d65dff93acecc8df54c31c958ad58b94909b2
Reviewed-on: http://review.couchbase.org/28719
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Fixed --debug builds on Windows.

Change-Id: I081bf78cea70bf29ac16bb6bbfd040ecc7458b79
Reviewed-on: http://review.couchbase.org/28720
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Updated example application to work with couchnode 0.1.0.

Change-Id: Ia952f9b76421b12c06294ecc2a3a5b50e4182c88
Reviewed-on: http://review.couchbase.org/28741
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Correct typos in .set documentation.

Change-Id: Ic0efe48bee72be0d4d71b650e5b7e5d95e8a1b19
Reviewed-on: http://review.couchbase.org/28743
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Fixed typo in errors list.

Change-Id: Ie4fdacb6958542c43c18cd63fc86580702ea41e8
Reviewed-on: http://review.couchbase.org/28766
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Getz <mark.getz@kellpro.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
JSCBC-50: Updated key option parser to accept Numeric types.

v8 blurs the lines between String and Numeric types when they are
interchangable.  Updated the key option parser such that it will respect
this and preform an implicit conversion from a number to a string.

Change-Id: I915152c52175165083b7e7d40cac1bf5bd665342
Reviewed-on: http://review.couchbase.org/28836
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Fixed bug causing calls with options to not default spooled to true.

Change-Id: I5fda9e42d7408e80f930099ba0be12ea072a161c
Reviewed-on: http://review.couchbase.org/28838
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Implemented durability requirements.

All storage operations now allow for persist_to or replicate_to
options to be passed to them which will cause an internal endure
call to be made to ensure all durability requirements pass before
invoking any user callbacks.

Change-Id: I8f2c2574833d248f013e6bd674fca9b6434006a8
Reviewed-on: http://review.couchbase.org/28839
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Added jsdoc documentation for error codes.

Change-Id: I97e55eac05a6b7379343d02234fb218cdc93fb09
Reviewed-on: http://review.couchbase.org/28840
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Added jsdoc documentation for value encoding formats.

Change-Id: Iebe16a4b9949f0885ecb50149b3cfa664983ed02
Reviewed-on: http://review.couchbase.org/28841
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
JSCBC-49: Implemented overrides for cross-library compatibility.

Updated get to take a format option rather than simply raw to allow
the user to specify a specific format that they wish to retrieve the data
as.  Additionally, the set method has been modified to allow overriding
of the flags values instead of it being automatically determined by
the library.

Change-Id: Ia4882beee6bbec719f89089011b6596bcdc40ae5
Reviewed-on: http://review.couchbase.org/28849
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Release 1.0.0-beta

Change-Id: I6cb796ea87c687c5991f8c7c0637881abac0183b
Reviewed-on: http://review.couchbase.org/28855
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Removed extra unused variable.

Change-Id: Iec16de0419284fc51620550d01b97ae5c4432454
Reviewed-on: http://review.couchbase.org/28863
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Update the makefile

The list of file contained deleted files, and lacked the new files

Change-Id: I15c99dc9643004f39015dc9d4e09f7c3274a7e79
Reviewed-on: http://review.couchbase.org/28894
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Fixed flags value not being respected during store operations.

Change-Id: Ie2b1280f3e7dbb40b0d35295f61f9a3712dcff44
Reviewed-on: http://review.couchbase.org/28935
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Free 'custom-allocated' buffers

Buffers too big to fit inside an allocation chunk were not freed,
resulting in serious memleaks when large buffers were allocated

Change-Id: I213b35185ed8eff1312fd09cdb62206c8251e69d
Reviewed-on: http://review.couchbase.org/28962
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Added new getMulti error test.

Change-Id: I19c7e3311ca150785d574f518a06e61c35cbf0f4
Reviewed-on: http://review.couchbase.org/28936
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Updated benchmark code to work with new api.

Change-Id: I0685609e7d8f46b3ac705c3ca6b65fb87df99dcb
Reviewed-on: http://review.couchbase.org/28937
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Updated 4101 error to have a message associated.

Change-Id: Iac47fe3ee0158b0d5426a48d32437e14b5af07f5
Reviewed-on: http://review.couchbase.org/28938
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>