Generic Mongodb repository with custom interface.