Starting cleanups of the mesh and jobs systems
More work on cleanups for lines and mesh