Rewrote the rest of Environment. Much smarter now.
Finished rewrite. Smart, fast. Needs tests.
Bumped version to 0.9.