A phone app, two sensors and 10 minutes a day helped people with migraines lose almost one bad day a month.