The U.S. war with Iran is rattling energy and financial markets. Gasoline prices jumped overnight while stock prices tumbled.