Support casper 1.0.3 plus

This fixes #73 (and #74). It may also fix #32, but I have not tested on Heroku. I would appreciate anyone who was willing to do so.

@ucarbehlul and @rumca: please pull this down and see if it fixes things in your environment.