add csg = cag.rotateExtrude();

add rotateExtrude, using new helper functions _toPlanePolygons, _toWallPolygons,
replace .extrude() with a simplified version using the new helpers.
remove cag.toDebugString and toDebugString1

The helpers will also allow a sketchup "follow-me" type function (follow a 3d path with a cag)