Remove some inheritence/structure confusion via method phpdocs
Add comments, tweak tests
Move PhantomJS log creation to PHPUnit listener, so it works locally too