PHP-1245: Use php_mongocode_populate instead of a MONGO_METHOD.
Added missing return type.

Otherwise it defaults to int... and that's not what we want.
Merged pull request #790
PHP-1245: Put MongoCursor::next in its own function, so we can use it in explain().

And add a basic test case for explain().
Merged pull request #791