add swap-index.sh and update-index.sh
verify-new-files: properly redirect output to stderr
also run swap-index.sh using sudo, it calls systemctl
empty popcon table after successfully downloading the new file

Not very important since that table is only used when creating a new
index, but good style nevertheless.