PHP-1245: Use php_mongocursor_create instead of a MONGO_METHOD in append_getlasterror.
PHP-1245: Use php_mongocursor_create in php_mongo_runcommand.
Move the setting of cursor->query up to cursor creation.
Merged pull request #784