Cedric Kipre's late goal gives Cardiff a crucial 2-1 win at Rotherham, all but securing their status on the Championship.