Allow to take screen captures with PhantomJS.

With this commit, screen captures can be taken from tests by using:
window.top.phantomJSRobot.screenshot("myFile.png");
This is useful to debug more easily any phantomjs-specific issue.
Logging friendly error when can't run PhantomJS

Logging error messages when can't find PhantomJS or there are permissions
errors.