Behind the castles and chivalry, the Middle Ages were defined by extreme cruelty, legalized torture, and ruthless punishment.