simple express.js middleware for mapping mongo collection to REST