Human history is littered with atrocities and genocides committed during war and for centuries civilised nations have struggled to deal with this kind of violence.