generalize the git gh-pages build step

Now it works with staging or production and is more flexible
remove old dead code
fix pull to pull from remote's gh-pages branch
simplify closing message since we know the remote name
just fetch from the one we care about
clean up more things
use a better name for the local origin of the temporary repo
remove an old file
make auto commit messages slightly better
clean the remote no a branch