Manchester City came from two goals down to beat Crystal Palace 4-2 at the Etihad Stadium in the Premier League.