Adds PhantomJS test runner.

Allows for easy command line test execution, where the exit code will
inform of the result.