Fixed server bug in screenshot creation.

Server variable was out of context after adding portfinder.
Selective browserify with —dir
Switched to yargs

Because gulp.env is deprecated