Separated STL writing code into a class.
Fixes and refactoring.

- Separated curve generator into a class
- Fixed all leaks in airfoil - mesh is now a closed solid
- Fixed airfoil tip - it is now closed with a separate surface