Libya is in protracted turmoil three years after the NATO-backed war that ousted Muammar Gaddafi, with Islamist, anti-Islamist, regional and political factions locked in conflict.