making node-memstorage supprort replicaset

supports mongo replicaset while maintaining backwards compatibility
Merge pull request #2 from edweip3/master

making node-memstorage supprort replicaset