Add code to save FFT data for TikZ/pgf plots.

This code really needs to be refactored and cleaned up but I don't have time at
the moment to do it.