Rewrite test runner.

- Clean up code.
- Move towards supporting phantomJS.
Do not output relative IRIs in RDF datasets.