Add commenting when taking a picture plus some cleanup.
Pass casper object to pre.js to get environment for reporting.