Dundee FC struck twice in added time to deny Dundee United victory in a gripping 2-2 Scottish Premiership derby.