major refactor of meshms handling to de-duplicate functionality
and simply function interfaces.