Support sharding in test suite getServerVersion() function
Fix version checking bugs and inconsistencies in test util includes

mongos.inc was comparing the server version and $needs version backwards. Additionally, it was only checking the standalone server version.

replicaset.inc and standalone.inc were defaulting to ">", instead of ">=".

unix-standalone.inc was ignoring $needsOp and always performing a "<" comparison.
Merge pull request #615
PHP-1009: JSON is optional at buildtime but requires at runtime

If you compile PHP with --enable-json=shared you'll HAVE_JSON
However, if you don't have extension=json in your PHP.ini.. HAVE_JSON
will still pretend to be there, and we eventually hit
Symbol not found: _php_json_encode

When built against json we need to require it to be loaded.
When we don't build against json, we report it normally as optional
Although, if you then compile and install json.. we won't actually know that
as we'll still think HAVE_JSON is 0 :]
There doesn't seem to be a real solution for this in PHP :/