Read md.relations in JSON
register events on onlinesrc popup open
merge