Denied Boarding

The flight is overbooked or you were refused at the gate. What to say, what the airline owes you and what not to sign.