Update the MongoDB Persistence layer to use the version 1.8 of the driver.

I've also fixed all deprecated function calls replacing them with the recommended ones.