Switches from the custom `buf` module to Iobufs.

Iobufs are less ad-hoc, and similar to the buf module. This PR uses them.