How the Warriors built one of the NBA’s all-time greatest dynasties with timing, foresight, and a lot of luck