The dot-com crash gutted an early online advertising network. Its second act came from owning the software that made the ads work.