Allow custom locations for data and temp directions and update some dependencies

Also removes some obsoleted, redundant, or duplicate files. Zend Framework is now at the latest 1.x
and PHPUnit is now at the latest 3.x.