Screenshotting support

I have added API for creating screenshots and for changing the viewpoint resolution.  The API from Mocha to PhantomJS is achieved using specific console.log's that PhantomJS listens to.  I have tested this and working well.