Update mongo configuration

Update mongo configuration options to cover most of the mongo client options.
Now supports replica sets, mongo based security, default write concerns, read perferences, etc.

Note: due the recent changes, it may not make sense to do a PR on this now. Most likely this will need to be reconfigured after the merge from the multitenant branch.