refactors casper.js server and gitignores the screenshots