add extendResponse option to middleware

Please, don't make me write anything in documentation. I haven't even read it :)

related issue: #84 
1) `extendResponse` should not throw any errors. If it does, I don't think we should catch it anyhow.
2) Yes, there is even a test about it