appveyor: refactor scripts, move publishing to appveyor.yml