West Ham appointed Nuno Espirito Santo as manager after sacking Graham Potter, aiming for revival after a poor begin.