The way I see it ( im no expert, just going by reports i've read over the last few years so maybe wrong ) is the middle east was a bit of a mess anyway but was being held together with sticky tape ( evil bastards like Saddam/Gadaffi controlling there people with a bit of an iron fist etc ), we come along with the Americans and blow Iraq back to the stone age, this created a power vacuum in Iraq, at the same time we were doing the same to Afghanistan creating a power vacuum in Afghanistan, This basically broke the power base in the middle east which gave rise to the Arab spring, which was basically a bunch of people uprisings around the region killing off existing power bases ( Gadaffi for example ) and causing yet more power vacuums, the last Arab spring uprising was in Syria, which is now the Civil war going on over there, but the war is exacerbated by ISIS, who have risen up and taken advantage of the power vacuum caused by us and the Americans.
Something that has been a constant through out the Arab spring uprisings is reports by the existing governments that the uprisings were aided by Al Qaeda or other extremist groups, lots of these reports were fobbed off as propaganda, but I now believe these extremists probably did play a hand it all and has formed the basis of ISIS.
Back to the refugee crisis, There are about 3 million Syrian refugees in neighbouring countries, about 1 million of them in Turkey living in horrific conditions, if they were lucky they got into a camp where they can at least get food and basic shelter, else they are living on the streets.
If the EU + America + Syria's neighbours all took an equal share of the refugees it would be about 93k people per country which should be easily manageable.