China's President travelled to North Korea for the first time in seven years, underscoring the strategic importance of ties between the two neighbours.