refactor and use cat-stream
decode compressed request bodies