For the origins the song was attested in 1904 by a English farmer established in jamaica named Walter Jekyll. That man published a nice book of stories and songs he had collected. The book is open source so you can check the page 183:
http://www.gutenberg.org/files/35410/35410-h/35410-h.htm#Page_183