Core: Fix build for vs2014
Revert "Core: Fix build for vs2014"

This reverts commit e3034511890f4c918d758a6b6b239c14f10b75e2.
Core/NetworkIO: Handle exceptions thrown from socket constructor when retrieving remote address
Core/Misc: Fix static analysis issues
Scripts/Misc: Fix static analysis issues

Replace CAST_AI() macro with ENSURE_AI() when dynamic_cast is not supposed to return NULL.
Core/Player: Fix an issue with Player::RemoveRewardedQuest not deleting the queststatus_rewarded form database

Needed for SPELL_EFFECT_CLEAR_QUEST
Merge pull request #12810 from Carbenium/questreward

Core/Player: Fix an issue with Player::RemoveRewardedQuest not deleting ...
Core/Trade: Fixed putting soulbound items to "will not be traded" slot
Scripts/ScarletMonastery: rewritten InstanceScript and some bosses converted to BossAI and eventmap

Conflicts:
	src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp