ignore __END__ unless line-head

Though __END__ can be put in the middle of a line, I think it's much rarer than quoted __END__ (for example, Parse::RecDescent has the latter). It's probably safer to check __END__ only at the head of a line.
fix importing errors
Merge remote-tracking branch 'remotes/charsbar/ignore_data_section_unless_linehead'
add a test that inserts a conflicting entry to the test database, adjust sorting to stabelize
address RT#87690: mldistwatch shall write a fail report when a pre-existing conflict prevents indexing
prevent redir from https to http