Add support for replica set databases

Handling of AutoReconnect exceptions still must be implemented seperately.
Merge branch 'replica_set_option'

* replica_set_option:
  Add support for replica set databases