refactor autorepair code into own js module

(incl. some minor improvements)
fix export to JOSM links

JSOM can't handle protocoll-less "//…" URLs, of course
use current protocol, fix improper protocol expansion
generalize export to OSM editor, add Level0