The surprising Giants won 107 games to stay in front of the rival Dodgers and secure a huge advantage in the postseason.