CSHARP-787: added x509 protocol.
CSHARP-787: added x509 support to MongoCredential and connection strings.
fix a bug preventing the proper exception being thrown upon an authentication failure.
little cleanup.