Renamed memstorage to memory
Added success on connect
Added index.js to control which store to use