Flight delays and cancellations brought on by weather, technology glitches and other issues offer a lesson: Be prepared and be flexible.