Refactoring magic_tags so one can export with different tags than import, and use fqdns instead as well