Sunrun shares rose sharply Wednesday after the solar panel installer posted a surprise profit and signed a deal with electric car maker Tesla’s retail electricity business. In an earnings ...