Added src/base/strbuf.c and associated tests