aprinter_encode.py: recognize EOF lines
More gcode parsing abstraction.
Implement reading binary packed gcode from SD card.