MIAMI — Erik Spoelstra and the Miami Heat have agreed on a contract extension, ensuring that the longest-tenured coach in franchise history only keeps adding to his team records for many years to come. Spoelstra is the league’s second-longest-tenured current coach behind San Antonio’s Gregg Popovich, who is in his 28th season as coach of the Spurs. Spoelstra is also …