Paul Cairney's late goal gave Hibernian a 1-0 win at St Johnstone on Wednesday, keeping them close to the SPL summit.