Integrated RTO estimation and new retransmission timer functionality into the protocol. WARNING: some tests are broken.