What is the origin or the meaning of 'Jack O' Lantern?

See the "folklore" section of

http://en.wikipedia.org/wiki/Jack-o'-lantern