Niall McGinn scored twice as Aberdeen beat St Johnstone 2-0 at a storm-lashed Pittodrie in the SPL on Saturday.