Aberdeen continue to lead the pack chasing second spot in the Scottish Premiership with a 1-0 victory over St Johnstone.