Make GcodeParser more abstract.
This will allow an alternative parser for binary packed gcode.