Terrain optimizations

Cleaned up terrain stuff that hopefully makes it way neater.  Started
framework of basic foliage creation.