The gunman who massacred Muslims was inspired by ideas that have circulated for decades on the French far-right.