Parse protocol requests
Better handling of flush, short lines
Simplify the pkt parsing code