add extendResponse option to middleware

Please, don't make me write anything in documentation. I haven't even read it :)

related issue: #84 
Why not just use an ordinary anonymous function?
Also add a test where you add a field to the response, that way you will test the main functionality of this feature.