Fitbit spent its first decade selling activity trackers. With its latest moves, the company is starting to look less like a gear maker selling pricey accessories to fitness buffs and more like a medical-device company, catering to hospitals, patients, and health insurers.