Fix pet spell cooldown being extended without successful cast

Closes #12560
Core/NetworkIO: Prevent double closing the same socket
Core: Fix non pch build
Resolve shutdown crash/leak if MySQL server is not running

Fixes #12734
PvPstats system

Signed-off-by: ShinDarth <borzifrancesco@gmail.com>
Added sql file for PvPstats tables
Merge pull request #12818 from MrSmite/pet_spell_cooldown

Fix pet spell cooldown
DB/Creature: Watcher Leesa'oh

Script turn in event for stealing back the mushrooms.
Kill potentially uninitialized variable warning
DB/Misc: More texts

add some missing texts from npcs, also set missing emotes for some existing texts.
Core/NetworkIO: Restore networking related scripting hooks

Closes #12607
Rename  2014_08_11_01_world_misc.sql to 2014_08_11_01_world_misc.sql
Core/NetworkIO: Prevent queueing more async operations when socket is already closed
DB/SAI: Rescript Manaforge quests

Rescripts the following quests: -

* Shutting Down Manaforge B'naar
* Shutting Down Manaforge Coruu
* Shutting Down Manaforge Duro
* Shutting Down Manaforge Ara

All events are now started from gossip select which is correct way rather than player just clicking on console
go remains clickable if player does not have access crystal or is not on quest but displays different gossip without the option to start event
Added mising gossips for npcs in manaforge coruu for if spoken to while player is disguised from item provided for http://www.wowhead.com/quest=10198
Remove Manaforges CPP Script

Remove script
Merge remote-tracking branch 'upstream/master' into PvPstats
Core/Threading: Fixed possible race condition with m_timeOutTime and fixed Thread #1: pthread_cond_{signal,broadcast}: dubious: associated lock is not held by any thread in PCQ
DB/Misc: Fix some errors
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
Merge pull request #50 from ShinDarth/PvPstats

Implemented PvPstats system (core side)