Scripts/Misc: Some code optimisations
Core: Fix build
Core/Loot: Cleanup in LootMgr.

* Removed a lot of loot template copying
* Improved grouped loot selection when using loot modes
* Removed code doing nothing
Build fix
Script: Fix warning for craping script -.-
Merge https://github.com/TrinityCore/TrinityCore