adding pyramid middleware so we can catch errors in middleware that wrap pyramid and in pyramid code @brianr