Fixing Failed States: From Theory to Practice