Express middleware to resolve objects containing promises, passed into res.json, res.send or res.render, to their result