Class-ify caves & move to cavegen.cpp, fix cave regression, add caves to Mapgen V7