This test requires mongobridge to make sense, and is alreay covered by
tests/bridge/legacy/bug00339.phpt
Fix connecting to mongodb
Make this test pass in non-ssl mode
Skip mongobridge tests correctly when not available
Fix tests when running under valgrind
Fix cgi tests

For somereason cwd for cgi isn't the same as for cli, so we need to
include the server.inc file differently.
Also to fixed the var_dump() for mongo/mongoclient writeconcern
Merged pull request #339