rb: Improve IOStreamTransport to behave more like a real transport [THRIFT-76] Author: Kevin Ballard <kevin@rapleaf.com>