Everton safed their first Premier League victory at Manchester United in 12 years, with 10 men after Idrissa Gueye was sent off for slapping his own teammate Michael Keane.