Gathering request data from rack enviroment instead of controller

This patch fixes empty request data for exceptions raised in rails middleware of rails itself.
It also has a test suite for handling uncaught exceptions that was previously in pending state.
Cons: might not gather correct data from rack environment because of simplicity of the parsing algorithm

All comments are welcome