Some refactoring/organization
Optimize output

We now combine adjacent line segments into continuous paths.  In addition, we sort those paths to minimize the non-cutting movement of the laser.