Add packet fuzzing to the test cases. Fix various crashes exposed by
this.
Merge pull request #26 from pjsg/master

Add packet fuzzing to the test cases. Fix various crashes exposed by this