Thousands gather in Tehran for Ayatollah Khamenei's funeral, chanting for revenge against the US and Israel.