Simplify ringbuf, now simply using indexes rather than pointers. Eliminates the need for memory management with e.g. memb from code using the ringbuf.