Tonga's prime minister, who nurtured democracy, dies at 78