Liam Craig headed a dramatic 93rd-minute equaliser as St Johnstone snatched a 1-1 draw with 10-man Dundee United in a frenetic Tayside derby at McDiarmid Park.