Researchers at Mayo Clinic and Arizona State University created a smartphone app and algorithm to help doctors and patients better manage type 1 diabetes.