Mohammed Tawfiq Allawi's appointment comes at a tense time as the country has been riven by anti-government protests and a deadly crackdown by security forces.