The BBC's boss and its head of news quit on Sunday following criticism over bias at the British broadcaster, including in the way it edited a speech by US President Donald Trump.