A scandal at the BBC has resulted in the resignations of its top two executives and raised questions about media bias.