Bug 1024920 - added a middleware for reporting needs

Still need to add a comment about that :)