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.