The former general counsel of a health care payments firm acquired by JPMorgan Chase for $500 million has been hired as the legal chief of a company launched in a garage in Estonia in 2010.