Move packet logging before sending the packet

Fixes an issue where the first packet gets send twice
Increase packet timeout time (2 -> 5)
Update changelog
Fix issue with acknowledge packets

Library would lose connection after 128 packets were received from the
server.
Merge pull request #33 from ziellos2k/develop

Develop