Generalize https filter take 2

- Fixes https://github.com/jch/html-pipeline/issues/123
- Restarts https://github.com/jch/html-pipeline/pull/124
- Refactored to use `Minitest`

Thanks for your contribution @rymohr!

@jch this is ready for review.