Beginning of wai-extra conversion

I quickly ran into problems with existentials. Going to try out an
alternate approach to simplify the types.
ResponseReceived, to avoid existential issues
Fixed a bunch of middlewares