Rename datagram-related flags.
Add on_bytes_written signal in stream.
Textual cleanup.
Add tx_datagram().
Add unfinished tx_reset().
Add handling for acknowledge packets.
Move missed and expired packets handling to the correct section.