restructure testing, add phpunit.xml.dist, add some missing licenses, add test instructions to the README