THRIFT-2279 TSerializer only returns the first 1024 bytes serialized

Patch: Matt Jones
THRIFT-2278 Buffered transport doesn't support writes > buffer size

Patch: Matt Jones