For decades, the US has relied on energy imports as its own oil production slowed. But the fracking boom changed everything.