initial removal of MongoAuthenticationMechanism enum
addressing change made in server 2.4rc0.
fixed bug with Code property and added tests.