Fix #586 by passing glines instead of raw gcodes to 2D viewer

We used to have our own gcode analyzer in gviz but this was clearly
suboptimal and broken. Position of drawn things should not differ in
anyway from the original GCode anyway.