Working POC of Q.js promise pattern for Casper.