The Summit of the Future has opened at the United Nations headquarters in New York, with the adoption of the Pact for the Future.