While riots in France lead to increasingly dramatic measures, ex-deputy cabinet secretary Helen MacNamara expalins the importance of what governments do during mass unrest. Report by Maja Anushka