Test for test prerequisites outside of test scripts.
tests: remove scrub dir before new tests.

This way a failing single test leaves leftovers for inspection.
tests: remove unused code
Refactors test for name validation.

We now have two tests, one agains localhost, and one against a .dev
name.
Fixes chained certificates

The chained certificates must contain root, intermediate, and leaf
certificate.
Create an additional root certificate in $DIR/root.pem
Also show CA_ROOT when logging openssl commands.
Bump version number