The world's most populous Islamic countries had major elections with major consequences for democracy.