The Toyota Gazoo Racing team roared to victory on an eventful day's racing at the WEC 8 Hours of Bahrain.