Refactored the lost packets calculations for MAVLink.
Current version was not as clear as it could be.
Replaced expensive modulus operation with bitwise-and.
Merge pull request #715 from Susurrus/seqid2

Refactor MAVLink packet loss calculations