Mapgen V7: Huge rewrite, also tweaks to cavegen et al.