tests: use %LOGDIR to refer to the log directory This will allow it be set dynamically. Ref: #10818
test{440,441,493,977}: add "HTTP proxy" keywords ... so the tests can be automatically skipped when using an external proxy like Privoxy. Closes #8959
test440/441: verify HSTS with trailing dots