Rivian has teamed up with EnergyHub to let drivers join utility smart-charging programs that cut costs and support the grid.