Adding support to write STL format, and making primitive shapes.

Added functionality for creating volumes with primitive solids, using
constructive solid geometry (CSG).
Added exportToStl format.