Streaming api

I wonder if this function should really be called `WriteHeader` or `WriteStart` rather than `Write`, just because I associate that with `io.Writer`, which this is not.