externalized csg core from coffeescad: it is a heavilly modified version of csg.js