Massive conversion of legacy sbufl stuff to use iobuf and better attrib
functions. Everything is broken now, but hey, the code is a bit nicer.