Split out MongoException into its own files.
Split out MongoGridFSException into its own files.
Split out MongoGridFSException into its own files.
Removed ifdef as it is would allow for 5.1 support which we don't do anyway.
PHP-542: Split out exceptions into their own files.
Merged pull request #309
PHP-694: Split out mongo_types.c into one file per class.
PHP 694: Split out gridfs.c into one file per class.
Merged pull request #310
Fixed PHP-303: Support the autoIndexId option for createCollection.
Merge branch PR #311

* pull-request/311:
  Fixed PHP-303: Support the autoIndexId option for createCollection.
Fixed PHP-508: Change BSON ID generation to use random "increment".
Merged Pull Request #312

* pull-request/312:
  Fixed PHP-508: Change BSON ID generation to use random "increment".
PHP-506: Added a test case, but the behaviour was already correct.
Merged Pull Request #315

* pull-request/315:
  PHP-506: Added a test case, but the behaviour was already correct.
Fixed PHP-490: "nolock" option in MongoDB::execute method.
Merged PR #313

* pull-request/313:
  Fixed PHP-490: "nolock" option in MongoDB::execute method.
Fixed PHP-704: Incorrect failure checks for stream reads

get_cursor_body() returns 0 on failure. I reviewed all other instances
of similar calls and they all look fine.
On failure, we also need to free the error message after throwing the
exception
De-yodafied.
Merged pull request #318