Optimized resend strategy

 - nacked messages and non-acked messages are handled separately
 - nacked messages are retransmitted immediately
 - non-acked messages are retransmitted after a timeout