A 20-year-old man has been arrested and charged over alleged threatening messages sent to a Scottish airport.