PHP-1063: Refactor cursor logic to follow MongoCommandCursor

https://jira.mongodb.org/browse/PHP-1063
If we'd be writing the code anew, then yeah, I would agree. This is really fragile though, and it works (after lots of fixes), and I don't really want to touch it again.