Express middleware to automatically map routing parameters onto Mongoose documents