Basic packet handling.
Merge https://github.com/1011X/Midori