This was a term used by Chief Thunderthud on the Howdy Doody show in the fifties. It was picked up by surfers in southern California in the late fifties, then skateboarders. Not Swahili, not Hawaiin, not Mutant Ninja Turtles - Howdy Doody.
The act of masturbating in the tune of the theme song of Teenage Mutant Ninja Turtles. Finally you ejaculate as the theme song says "Turtles in a Half Shell."
Not beatnik, not hippy, not swahili, but early sixties, California surfer. A corrupted version of the Hawaiian "kupaianaha," which means "fantastic," and any other synonym of "wonderful" you care to choose. The word probably entered greater American consciousness through the surfer moves of the period.
For what it's worth the Teenage Mutant Ninja Turtles spoke "surfer" with a little "valley" thrown in.