Aberdeen moved into second place in the Scottish Premier League thanks to a 1-0 away victory over Hibernian.