Allow PHPUnit installations with composer (and drop PEAR dependency)

This basically lets you install PHPUnit with composer and completely remove pear as a dependency.

@dhensby also mentioned that you could also change the composer.json file to list PHPUnit as a dev dependency, so no more fragmented installs.

I also fixed a few misc typos which would otherwise throw exceptions.