The outlaw country singer was also a first-rate songwriter, capable of sweet, evocative folk tunes of memorably iconoclastic characters