Iran and the US edge closer to a deal that could end the Middle East war and reopen the Strait of Hormuz.