Merge pull request #150 from zeezooz/replicaset_configuration

Allow to set replica options.
Merge branch 'master' into next