Major refactoring. Add support for mesh splitting if requested terrain contains more vertices than XML3D can support in one mesh.