Craig Halkett scored a stoppage-time winner as Hearts defeated city rivals Hibernian 1-0 at Tynecastle to surge five points clear at the top of the Scottish Premiership.