A mobile app combines the power of millions of accelerometers in cell phones to give early warning of earthquakes and the tsunamis that can follow.