Implement %b content-length

The recorder middleware is in charge of collection that number.
The order of the middleware is rearranged in order to "record" after
gzipping.