Moved strbuf_getlen/setlen into length/resize methods on STRBUF
Added STRBUF::empty method, removed strbuf_empty function which wasn't quite the same (more like checking if any internal buffer had been allocated)
Change strbuf_value to STRBUF::c_str