Fixed PHP-876: Make the driver check the server version upon connecting.

We also expose this version information through getConnections().
Merged pull request #497