Add support for testing with PhantomJS as an alternative to Leprechaun.