Use Whoops to handle errors in development.
Update PHPUnit to 4.2
Only use custom error handlers if we're not in testing mode.

Deprecation errors in Whoops cause PHPUnit to give up without actually
doing anything. This lets PHPUnit get better visibility.
Merge branch 'whoops'
Update the mySQL class to use PDO functions.
Modify mySQL class to allow execution of prepared statements.
Change all queries involved in home page to use prepared statements.
Replace mysql_real_escape_string with PDO prepared statements.
Remove code which has been commented out since 2010

This is in the git history in case anyone needs to refer to it.
Remove more long commented-out code that uses non-parameterized SQL
Modify how insert IDs are retrieved to sanity check they are numbers, and cast accordingly.
Remove redundant variable declarations.
Resolve previously unspotted syntax errors.