A generic mongo repository for node.js