A Los Angeles-based tech unicorn passed on Nashville for its third hub. The site selection soon narrowed to Atlanta, Austin, Nashville and Raleigh. Here's how the North Carolina city landed the deal.