Core/Map:

- Fixed crash when a player was disconnected during a transfer to another map.
- Only call OnPlayerLeaveMap if player is removed from map. (Ty QAston)

by Kaelima.
Core/Transport: some improvements

* fix script hook
* fix BuildStartMovePacket and BuildStopMovePacket cause desync client-server
* generate waypoint using spline

by wilds.
Core/Db/Conditions: Add NegativeCondition column to conditions table which allows to check whenever player does not meet condition specified by ConditionTypeOrReference column (ConditionTypeOrReference and ConditionValue3 set to reference id are not affected by the change)

by QAston.
Core/Protocol: Remove useless ResetInstances call inside WorldSession::HandleResetInstancesOpcode. by Kaelima.
Core/Db/Conditions: Prepare conditions system to work on objects of different type than players.

Warning: API has changed a bit:
ConditionScript::OnConditionCheck(Condition* condition, Player* player, Unit* invoker) is now
ConditionScript::OnConditionCheck(Condition* condition, WorldObject* object, WorldObject* invoker)

by QAston.
Core/Db/Conditions: Don't use ConditionValue3 as a reference id for template conditions - ConditionTypeOrReference serves this purpose. by QAston.
Scripts/Icecrown Citadel: Fixed crash in spell_frostwarden_handler_order_whelp
Core/Db/Conditions: Add 3rd parameter to CONDITION_ITEM so it can now perform a check if item exists in bank aswell as in equipment.

by QAston.
Core/Db/Conditions: CONDITION_NOITEM and CONDITION_NO_AURA became deprecated with `NegativeCondition`
Core/Db/Conditions: remove ConditionValue2 parameter CONDITION_SPELL which was used for checking if player doesn't have spell and use NegativeCondition parameter instead.
Core/Db/Conditions: Add ContidionTarget column which allows selection of objects which will be checked by condition, depending on SourceTypeOrReferenceId.

So far usable only with CONDITION_SOURCE_TYPE_SPELL:
ContidionTarget = 0 - check caster
ContidionTarget = 1 - check explicit target

by QAston.
Fix build with GCC (it seems like it doesn't allow using references to temporary objects). by QAston.
Core/Db/Conditions: Add new condition types:

- CONDITION_OBJECT_ENTRY
- CONDITION_TYPE_MASK
- CONDITION_RELATION_TO
- CONDITION_REACTION_TO
- CONDITION_DISTANCE_TO
- CONDITION_ALIVE
- CONDITION_HP_VAL
- CONDITION_HP_PCT

by QAston.
Core/Conditions: Allow to set SAI conditions to both the invoker and the object using ConditionTarget column.
ConditionTarget 0 = invoker
ConditionTarget 1 = object

by Subv.
Core/Db/Conditions: Add conditions for world state and phasemask

CONDITION_WORLD_STATE - 11 - index - value - 0
CONDITION_PHASEMASK - 26 - value - 0 - 0
Idea by @LiMCrosS
Core/Quests: Correct use of parenthesis in IsAutoComplete and IsAutoAccept, by matt.
Core/Loading: Speedup on the creature loading code

Signed-off-by: Subv <s.v.h21@hotmail.com>
Core/Quest: fix issue with seasonal quests. by kandera.
Core/Unit: Solved issues with neutral creatures that were being attacked when they should not be.

Thanks to Subv for the tweaks!
Core/Spells: Allow dead players as valid objects for RaiseDeadObjectCheck (enables Raise Dead on players that have not yet released spirit)

TODO: Allow all corpses