Do not try to authenticate when no credentials are set.
Set error_message in every case we return 0.
Mark these functions as static, as they are not used outside this file.
Fixed CS issues.
Merged pull request #765
Fixed PHP-1278: runcommand memory leak
Merged pull request #770
PHP-1258: Run the testsuite against alternative storage engines
Make the setting of storage engines actually work.
Also allow storage engines to be set by an environment variable so no mucking of config file is necessary.

Fits in nicely with the MONGO_SERVER_* env vars too.
Don't forget the master/slave configuration.
Also set the storage engine for the config server(s).
Merged pull request #771
PHP-1276: Duplicate Key error message changed
Merged pull request #772
Removed new setting of error message, as the saslstart function already set it afterall.
Merged pull request #773
PHP-1276: this hardly could ever had worked
Merged pull request #774
PHP-1286: MongoCollection::count() segfaults due to a double free.