Added support for ReplicaSet

Added support for setting the replica set and enable the rest API. Closes #16.