modified mongodb::add_user to work with mongo2.4 and pre-mongo2.4.