Core/Phases: Preliminary work with correctly implementing the phase system in 4.3.4

Put here for peer review.
Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4_phases
Core/Phases: Use a O(n) operation when comparing phases instead of a O(n^2) one
Core/Phases: Added missing sql and changed how phase_definitions will work, implementation still missing
Core/Phases: Removed some phasemask handling, more to come
Core/Phases: Update transport visibility when changing phases
Core/Phases: Removed more SetPhaseMask uses
Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4_phases

Conflicts:
	src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp
Core/Build: Fixed build
Core/Conditions: Removed deprecated CONDITION_PHASEMASK and implemented CONDITION_PHASEID
Core/Phases: Removed more of the old phasemasks
Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4_phases
Merge branch '4.3.4_phases' of https://github.com/TrinityCore/TrinityCore into 4.3.4
Merge branch '4.3.4' of https://github.com/TrinityCore/TrinityCore into 4.3.4