THRIFT-2280 TJSONProtocol.Flush() does not really flush the transport

Patch: Jens Geyer
THRIFT-2281 Generated send/recv code ignores errors returned by the underlying protocol

Patch: Jens Geyer
THRIFT-2282 Incorect code generated for some typedefs

Patch: Jens Geyer