The way I look at it is like this:
U.S general media sources (FOX, CNN, etc) don't generally cover anything out side of the United States, so when 30 some odd people die in a foreign country most American's don't hear about it. However, that doesn't explain why there's such an outrage over the deaths in Boston, and the true reasoning behind that is because it's a plausible domestic terrorist attack. The United States is not a war zone, no matter what "truthers" try to tell you, I've lived in densely populated urban areas and sparsely populated rural areas. I've never once encountered 90% of the things that people would like you to believe happen every day.
So yes, most American citizens don't truly mourn and pray for the civilians who die in foreign countries, but that can mostly be attributed to it not being mentioned much. Not to mention that Iraq is still seen as a war zone, and we've been desensitized from the many deaths (American, non-American) that have already happened over there. To summarize, the Iraqi deaths are seen as war casualties, thus it's hard to draw sympathy.
I mean, wouldn't the same thing happen in any other western nation? If a bomb exploded anywhere in your nation, leaving fatally wounded and severely injured in it's wake, wouldn't you also feel more grief towards that event over any others that may be similar, but in a foreign nation?