Tackling the root causes of unrest – even deciding what they are – is set to be a crucial test for the new government.