added casperjs integration test and (hopefully) set it up to work in Travis CI.