Have gills always been for breathing?

Researchers studying the evolution of fish have produced evidence suggesting that gills may have evolved as a way to exchange ions with the water, rather than as a way to breathe. (Thanks, Mark Changizi!)