China and Japan capped a restoration of ties with agreements on everything from currency swaps to ocean rescue. Shinzo Abe became the first Japanese prime minister to pay an official visit to China in seven years, and met Premier Li Keqiang and President Xi Jinping.