Updated Stop and Wait to handle retransmission of lost packets.

1) Added random packet loss to the link model
2) Added retransmission timers and cancellation of timers to the
   Stop-and-Wait protocol.