Lawyers are leaving the safe and well-paying world of law to build their own fast-growing, tech-first companies.