Convert deprecated MongoClient constructor options for driver >= 1.4.0

This supersedes #137.