Convert write insert and footer to use streams.
Convert write insert and footer to use streams.

See #356.
See #355.
See #107.
See #4.

cesarmarinhorj/strata,bigeasy/strata,bigeasy/strata,cesarmarinhorj/strata