Switch to dnoegel/php-xdg-base-dir
some smaller code changes
`require --dev` phpcs and phpunit
various test-related improvements