Work in progress, no need for proper review yet! (But helpful hints are welcome, of course.)
This is my work-in-progress towards Trac #12618. It is not ready for review yet; I
create this DR mainly to get Harbormaster run it, because it crashes on my
computer, but works in Travis, and I need a third opinion.