Created middleware that catches stdout and makes it available in the environment
Added stdout catching middleware to app, and made it print in dump handler