Thousands of mourners grieving the death of Iran's supreme leader gathered on the streets of Tehran, with the crowd so large it was visible from space.