When setting up replicasets if a connection error occurs then display the exception why we could not connect to the mongodb.
A new attribute added to be able to decide how much we want to wait for the first start of mongodb. It is especially useful when we expect a big preallocation lag
Fixed error message check for already initiated replicasets. Also fixed the config check for the available replicaset to use the current nodes instead of the local one.
Fixed error checking. Only errmsg should be checked for error. For example {"ok"=>1.0} is a successful result, but it triggered the error in the previous version.