Removed console testing, other code cleanup.

Switched to using PHPUnit, instead of my own half-assed setup.