Fail fast on AppVeyor for repeated commits to same PR

Use AppVeyor's API!

reuse cached version of jq instead of downloading every time

make slightly more robust to network problems
Merge pull request #9355 from tkelman/tk/appveyor-failfast

RFC: Fail fast on AppVeyor for repeated commits to the same PR