Netflix has had as many trials as triumphs over the years. Here’s what other companies can learn from its journey.