add extendResponse option to middleware

Please, don't make me write anything in documentation. I haven't even read it :)

related issue: #84