buffer: use smalloc

Buffer memory allocation has been moved to smalloc. Buffer instantiation
has been moved to C++. There are no more SlowBuffers, and no more
.parent.