Fixes command-line issues e.g. running unit tests
They are creating way too many errors that are not going to be fixed right now. Also added basic qa-config.php so that PHPUnit runs without error.