The controversy surrounding what the BBC has called an "error of judgement" led Director General Tim Davie and CEO of News Deborah Turness to resign on Sunday.