[c12661] Improve Waypoint Management

* Allow waypoints that have point-ids not from 1 to n
* Remove possibly bad sql-statements to "fix" the above property
* Simplify code a little bit

Remaining TODO: Bring commands up-to-date and also make things more simple instead of using the database to store visual waypoints

(based on commit [12469] - 382f837)
[c12662] Let Taunt behave more expectedly in case we have non-generic orientation settings

(based on commit [12470] - cd2e301)
[c12663] Rework StopMove to not start movement if already stopped

thx to Schmoozerd for hint
thx to rsa for pointing to bug

Signed-off-by: Schmoozerd <schmoozerd@cmangos>

(based on commit [12472] - c937eb7)
[c12664] Fix MoveGen's interrupting after last commit

Signed-off-by: Schmoozerd <schmoozerd@cmangos>

(based on commit [12473] - baa6525)
[c12665] AI-Event throwing and receiving implementation

Add new AI hooks to
* SendAIEvent (either around the npc, or to a specified npc)
* ReceiveAIEvent (hook to receive sent events)

(based on commit [12474] - dffd521)
[c12666] Add ACTION_T_THROW_AI_EVENT and EVENT_T_RECEIVE_AI_EVENT to EventAI

Also introduce new target-type TARGET_T_EVENT_SENDER (only valid with EVENT_T_RECEIVE_AI_EVENT) to know who sent a received event

Note: This system is still in development, but this should already give many nice powers for first improvements and uses

Close cmangos/mangos-wotlk#110

(based on commit [12475] - d0816b7)
[c12667] Add support for client 1.12.3 (build 6141) to realmd

Note for backporting: part in game/SharedDefine.h might be required in tbc already, see cmangos/mangos-classic#24

Signed-off-by: Schmoozerd <schmoozerd@cmangos>

(based on commit [12476] - dca6ad0)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
[c12668] Fix a VC90 compile problem. Also add some const correctness

(based on commit [12477] - 1ea0f45)
[c12669] Add some safety to rare case of target-selection for unreachable target

Thanks to Atari for reporting and researching this problem

(based on commit [12478] - ae2a837)
[c12670] Enable using table creature_linking with empty table creature_linking_template

Note: Guids are evil!
Close cmangos/issues#148

(based on commit [12479] - 4e65ae9)
[c12671] Improve unsummoning of wild-summoned GOs

This will fix some problems ie in Sunwell, thanks Atari for pointing

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12480] - 85e9938)
[c12672] Fix a bug with vmap extraction

This bug appears to have no real impact in wotlk

(based on commit [12481] - c444465)
[c12673] Implement target limitation for spell 72254

Note: For the spell to actually work, you will need to append a database-update from http://cmangos.net/thread-201.html

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12482] - 953ac1b)
[c12674] Improvements for NPC summoning code

* Inherit faction for guardians and similar - this will prevent a bunch of pet faction related error messages
* Inherit level from responsible caster and not only caster
* Improve default position selection for summon spells for GO-casts

(based on commit [12483] - 771342e)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
[c12675] Fix a stupid mistake from me introduced in [12472]

Thanks to boxa for pointing

(based on commit [12484] - bffff06)
[c12676] Improve WaypointMMGen

* Add correct Reset position (Npc will evade now to the last reached waypoint, and not to the next waypoint)
* Add proper return value for the CONDITION_LAST_WAYPOINT

* Let WaypointMMGen behave better after evading (keep PAUSED state, keep waittimer

(based on commit [12485] - 3d41af5)
[c12677] Fix guid sent in SMSG_PLAYERBOUND, it should be caster's guid, not player's

Signed-off-by: stfx <stfx@hotmail.de>

(based on commit [12486] - 3276232)