Palace produce grandstand finish to beat Watford