The creation of GM Energy — which will focus on the broader battery business — is the latest signal that the auto industry sees a future in the fusion between electric cars and the electric grid.