It's a simple half-cell galvanic reaction. Essentially the potato and salt act like the inside of a battery and placing the wires together creates a flow of current with a combination of heat and a spark (that's why you wait 5 mins to "charge" up the cell. The cotton merely catches the spark and creates the flame.
Abusive comment hidden.
(Show it anyway.)