Redesigned parametric mesh generation to be modular

Now user can give it's own prefered curve integration method for meshing
the parametric curve.