From Exogenous to Endogenous Economic Networks: Internet Applications