Actually implement stream deflate

Previous commit was implementing inflate, not deflate