The Canadian train tragedy is becoming Exhibit A in the political case for building pipelines, such as the proposed Keystone XL, as well as for opposing them. Meanwhile, energy companies have boosted rail shipments of oil in response to a surge in production.