[mongo] 2.x support

mongodb 2.x did a major refactor that breaks a bunch of things. This is an attempt to keep support for it up-to-date. I should note that 2.x is not yet stable, so a couple tests in here are unfixable until fixed in the mongodb module itself.