Added gcode generator, abstracted out many pieces of gcode generation,
added power scale config value