Moved general context-setting middleware out of webmaker-events.