Islamic State militants clashed with security forces inside Iraq's largest refinery on Thursday and held on to recent gains in the west of the country, as Prime Minister Haider al-Abadi said the extremist group remained "very, very dangerous."