North and South Korea have agreed to march together under a single flag at the Winter Olympics opening ceremony, in the latest sign that the crisis on the peninsula may be easing.