tests: Reduce function duplication
Significantly improve badvarnishd.sh

Fixes #61

for now...

It's not perfect, and the output is a bit ugly, but it's better.

And make check now takes 45-ish seconds instead of 95-ish.