Implemented out of order message checking and resequencing.
Merge pull request #6 from christav/sequencing-added-to-sb-15

Implemented out of order message checking and resequencing.
Merge pull request #22 from christav/master

Refactorings and better tests