Fixed a bug where the first packet could trigger several authentication start-replies, if resent
Fix for replying to keepalive-acks more correctly. (Should decrease the amount of unexpected timeouts)