Former Finance Minister Naoto Kan to be Japan's next prime minister, after being elected leader of the Democratic Party.