Article stopped exactly where stuff got interesting.
This whole "protons entering bacterium and being pumped out" is exactly the ancestor of the mitochondria, that's what it does, except now the "outside" is the inside of the parent cell.