Adds ability to pass messages to res.locals