Bug 1024920 - added a middleware for reporting needs

this still needs to be done.