Added a bunch of debug code and fixed a bug that was derailing terrain
generation. There's still at least one bug (anomalous pillars) left, and
possibly another (unchanging tr_interp & region in the debug UI).

-Peter Mawhorter
Fixed several bugs, including improper spawn height and some problems
with dirt levels.

-Peter Mawhorter