add extendResponse option to middleware

Please, don't make me write anything in documentation. I haven't even read it :)

related issue: #84 
`done` will throw errors that come from `extendResponse`. I believe, the expected behavior would be returning error object.
Also `extendResponse` will be applied to the error object?