I see and hear two general slang usages of cool - one meaning great (illustrated by a and b below), and one meaning acceptable/okay (illustrated by c and d). The following are Dictionary.com's four (read: two) definitions of the slang cool:
14. Slang
a. great; fine; excellent: a real cool comic.
b. characterized by great facility; highly skilled or clever: cool maneuvers on the parallel bars.
c. socially adept: It's not cool to arrive at a party too early.
d. acceptable; satisfactory; okay: If you want to stay late, that's cool.
Why did cool come to mean great or acceptable? Also, can anyone find some early usages? The biggest clue I have is this (from Dictionary.com):
Slang use for "fashionable" is 1933, originally Black English, said to have been popularized in jazz circles by tenor saxophonist Lester Young.
Googling Lester Young 1933 "cool", etc., did not yield me any fruit.