Donald Trump's weird week started with bad medical advice, a deranged speech to the UN and a stuck escalator - and it ended with him settling old scores