DOCS-888: correcting syntax in a few docs examaples
Merge pull request #803 from tychoish/docs-syntax-correction

DOCS-888: correcting syntax in a few docs examaples
Cursor.each should work in batches
Cursor.toArray should use batches too + minor optimizations
Merged in code from Issue #808
Merge branch 'master' of github.com:mongodb/node-mongodb-native
Merge remote-tracking branch 'swatinem/eachbatch'
fixed; domain sockets shouldn't require a port arg
Merge remote-tracking branch 'aheckmann/domainSocketPort'
updated docs, package.json, history
Bug fix and test for Issue #817
test for querying with readpreference.SECONDARY when no primary is up
fixed a small typo

changed databse to database
Merge pull request #821 from mpobrien/master

test for NODE-25: can't query replica set with SECONDARY read pref when no majority available.
Fixes for NODE-25, rolled back some code for batches
allow gridfs objects to use non ObjectID ids
mapReduce; auto-convert scope functions to Code
white space
fixes an auth typo and connection override issue, possibly related to 827
connectionPool: close dead connections

closes #827