libstd: Implement `StrBuf`, a new string buffer type like `Vec`, and
port all code over to use it.
auto merge of #13269 : pcwalton/rust/strbuf, r=pcwalton

port all code over to use it.

r? @alexcrichton