Refactor the GCode parser to support a wider array of GCode generators, in particular Slic3r.