Today, Silicon Valley is home to tech companies that are worth billions. But their beginnings were ad hoc, chaotic and revolutionary.