Turned GCODE parser into a module

Partly learning about modules, Partly because it was a little out of
place in the main print.js file.