Pass mode parameter on windows

Closes #134
fix mem leak in example

Closes #133
Fix wrong fwrite arguments order in example

Closes #132
changed test for db error messages reflecting changes in server

Closes #125
Support for cursors in crud metadata
get_*_info -> find_*
Check for closed sockets before attempting a rpc

Ensure that the socket we've selected has been read from within a
second.  If it hasn't, check if it's closed by polling for readability
and if that works, MSG_PEEK'ing a single byte.  If we get eof, or an
error, we can assume it's broken.  This lets us avoid a large class of
transient network failures.

Closes #136
CDRIVER-470 added wiredtiger index options

Closes #126
CDRIVER-471 Validation for wt opts for collection

Added in validation for wiredtiger storage options to createCollection.

Closes #127
exit on failure

Closes #71
CDRIVER-486: There is no need to depend on sasl for PLAIN authentication
Missing entry calls
CDRIVER-485: Invalid read on authentication failure