Streaming and rest support

Still leaves a lot to be desired, but needs to ship. So...