Refactor and check-in nightly archive and maprender scripts.