Donald Trump put friends and foes on notice when he addressed the World Economic Forum on Thursday, making his return to the world stage.