The interim government in Libya connected with commander Khalifa Haftar resigns as protests continue across the country.