Split `ChIrrMeshTools` into header and implementation files.

Convert to free functions.