Clean up old api doc files when updating gh-pages.
Rewrite (a simpler) PHPUnit integration.
Update readme.