Upgrade to mongo-java-driver 2.11.1

Upgrade to mongo-java-driver 2.11.1 and replace all calls to deprecated methods with their replacements.