Refactor for more robust packet packet inspection.

Additionally, verify peer nonces and start implementing stream termination.
Unpack most data from structs.