Plack middleware component to record warnings
