Scripts/Ruby Sanctum:

* Move Dark / Flame Breaths handling to generic_halionAI.
* Also apply Twilight Precision to Twilight Halion.
* Fix some mistakes in the corporeality handling code, and remove some unused enums.

Fixes #8176.
Fix PetAI missing aggressive pet target select
PetAI minor cleanup of target selection
Merge pull request #8259 from Warpten/supLion

Scripts/Ruby Sanctum: Tweaks and stuff.
Merge pull request #8330 from MrSmite/PetAI_TargetSelect

[Core/Pet] PetAI_TargetSelect
Core/Calendar: Completely rewrite and fix most of the calendar system

There are still some issues that need to be fixed, for more info see CalendarHandler.cpp TODO part.
Some unblizzlike behaviour possible, we don't have a lot of sniffs.
Big thanks to @Warpten, he joined my project and helped a lot.

IMPORTANT NOTE: Read / append packed time functions in ByteBuffer.h are not correct, they need to be fixed in order to have event times accurate

Signed-off-by: Nay <dnpd.dd@gmail.com>
Scripts&DB: Nexus - Ormorok

Following improvements:
- Spellscript for crystal spikes
- Spawn crystal tanglers with spell
- Usage of event map
- Correct usage of frenzy
- Heroic spells
- Target selection for crystal tanglers

Details for the spell script:
There are 4 spells. Each of them spawns the same trigger but in another direction. The trigger gets an aura which triggers the spell which summoned him after 250ms. This time is too long, so it triggers on apply. Don't worry - test ingame first, it's working blizzlike (I watched some videos on YT to find out which is the best amount of time difference between spawn and next summon).

Some summon types don't store the spell id which summoned them. The trigger is one of them which are not doing so. So I had to move the line, which stores the spell id in the summon out of the if. This could be done more specific, but it works fine. This improvement is required to find out which spell the aura applied to the summoned trigger has to cast to keep the right direction.

Closes #8193

Signed-off-by: Nay <dnpd.dd@gmail.com>
Scripts/AQ: Implement Ossirian the Unscarred

Fix yell on kurinaxx death

Warning fix

Closes #8254

Signed-off-by: Nay <dnpd.dd@gmail.com>
Scripts/ToC: Trial of the Crusader rewrite

Closes #8272
Closes #7013
Closes #7552
Closes #5561
Closes #4221
Closes #2701
Closes #2079
Closes #5082
Closes #6503
Closes #6784

Signed-off-by: Nay <dnpd.dd@gmail.com>
Misc: Whitespace and tabs cleanup
Scripts/AQ: Fix non PCH build
Scripts/Instances: Save Magister's Terrace door (and statue) state.
Closes #6889
Scripts/Instances: Added missing definition from previous commit.
Core/Battlegrounds: Add methods for determining the winner of a BG if it has ended due to not enough players.
Implemented for Arathi Basin, Alterac Valley, Warsong Gulch and Eye Of The Storm.
All other BGs winner are currently decided based on the number of players of each side, they will be implemented later.
Fix compile without PCH (Also added some minor changes to minimize differences with 4.3.4)
Scripts/AQ: Fix warnings (thx razhael)
DB/misc:

NPC Jezelle Pruitt Closes #856
Standards and Practices Closes #1539
An Improper Burial Closes #1977
Postponing the Inevitable Closes #2350
Rune of Dawn Closes #2782
No Rest For The Wicked Closes #4013
Gregory Tabor Closes #4350
Anatoly Will Talk Closes #4551
Pilgrim's Bounty Closes #5025
The Fallen Sisters Bugged again Closes #5419
The Lost Spirits Closes #5647
Feedin' Da Goolz Closes #5679
The One That Got Away Closes #5764
Find the Ancient Hero Closes #5785
Shattrath Daily Quests missing ExclusiveGroup Closes #5821
Nether Drake Egg Closes #6284
Quest - 28056 Closes #6627
Before the Gate of Horror Closes #5760
Quest Audio - 12593 Closes #6632
Souls of the Decursed Closes #6724
Norgannon's Shell (12872,12928) Closes #7837
Windcaller Yessendra (15498),Warden Haro (15499),Keyl Swiftclaw (15500),Mokvar (16012) & Deliana (16013) quests  Closes #7907
Attunement to the Core (7487,7848) Closes #7908
spawn location in OG near Rogg (37072) Closes #8021
Missing Fires for Hallow End Q  Closes #8086
Wickerman Festival NPC & GO's Closes #8133
Hallow's End Pumpkin Treat & Tricky Treat time fix Closes #8244
Exhausted Vrykul - not responding after using discipline stick on him Closes #8288
commitfix: add newline to prevent possible issues with next file
db/commit: NULL is a bad param, fixed
DB/Event: Pilgrims Bounty support, thanks to Vincent Michael
Commit: change SQL name to match indexing