Funeral prayers are underway for Ali Khamenei, Iran's supreme leader, as thousands gather in Tehran for the second day of ceremonies. His death marks a major transition for the Islamic Republic and leaves questions about succession at the top of the Iranian government.