Automatic recode transform streams in object mode into Channels.

This adds support for automatic transforming Transform Streams into Channels.

@AdrianRossouw what do you think?

I also refactored the whole encoding thing, so it might be easier to fix your use case too.