Refactored methods which dealed directly with gridfile contents instead of using gridfile object. This refactoring is needed in order to later refactore pre and post processing of chunks logic to optimize buffer allocation and prepare the ground for effective usage of pre and post processing for encryption, which requires keeping a context between calls
Added tests for return value of gridfile_write_buffer and added comments of return value on gridfs.h
GridFS: Eventually `gridfile_writer_init` should return a meaningful value
Minor refactoring and compilation fixes
GridFS: Stop writing when encountering an error
Tests: Add macro for gridfs_init
GridFS: Add return value to gridfs_remove_filename
Merge branch 'refs/heads/official' into gridfs_changes

Conflicts:
	test/gridfs_test.c
Removed warnigns when compiling on Visual Studio and also fixed an access violation working with replicaset related to unused variable hosts when reached destruction
Commented out hosts variable from mongo_replicate_set_check_seed
Merge pull request #118 from noa--/gridfs_changes

Minor GridFS changes
Merge pull request #119 from jsbattig/master-pull-request-mongo-warnings

Removed warnigns when compiling on Visual Studio and also fixed an acces...
GFS_INIT missing from test_random_write
Merge remote-tracking branch 'refs/remotes/Mongo/master' into master-pull-refactor-newgridfs

Conflicts:
	src/gridfs.c
	src/gridfs.h
Fixed some minor issue to allow compilation on Visual Studio
Added ignore
Merge pull request #113 from jsbattig/master-pull-refactor-newgridfs

Refactored methods which dealed directly with gridfile contents instead ...
Merge remote-tracking branch 'refs/remotes/Mongo/master' into development

Conflicts:
	src/gridfs.c
Fixed small warning of uninitialized variable
Libraries compiled anew
Fixed small warning of uninitialized variable