making node-memstorage supprort replicaset

supports mongo replicaset while maintaining backwards compatibility