Core/Loot: Fix master loot

Players will be able to open the loot window and see the items in case of master loot.
If the item is under threshold FFA applies, else the item becomes locked.

Also fix an exploit related to master loot item give.
Core/Loot: Implement round robin for under threshold items in case of master loot

Thanks @Shauren for pointing out
Update 2014_03_24_02_world_creature_classlevelstats.sql
DB/Quest; Fix Preying Upon the Weak traps

By untaught, closes #6858
Core/Misc: Fix assertion triggered

Change an assertion added in 6dcd8c8545a65a7bfbd0daaa16f650d8c3a90262 with a NULL check, properly handling the case of a NULL parameter.
Fixes #11771
DB/Creature: Fix Living Storm coords

By Magnifikator closes #11785
Buildsystem: Changed required CMake version to 2.8.9 and removed a check for version we no longer support in msvc settings
Build system: Fix clang build

See wiki for latest build instructions under Mac OS X!
Scripts/Icecrown Citadel: Fixed Muradin/Saurfang attacking each other during Gunship Battle

Closes #11786
Core/SAI: Implement two new event types that are triggered when a certain creature/gameobject entry or guid gets within a given distance of the source.
Core/SAI: Only allow SMART_EVENT_TARGET_BUFFED to be used from creature sources.
Core/SAI: Allow only creature sources to use the event types SMART_EVENT_DISTANCE_CREATURE and SMART_EVENT_DISTANCE_GAMEOBJECT for now.
Quest: The Power of the Elements

Remove hack SAI, use aura script
Fix non-pch build and remove blank line
Quest: Direhorn Raiders

Remove duplicate kill credit
Core/Misc: Fix some static analysis issues

Fix uninitialized values, most of which are false positives, always initialized before being accessed.
Add some asserts and additional NULL checks as sanity checks. Use SpellMgr::EnsureSpellInfo() if the spell id is valid and always supposed to return a valid not-NULL SpellInfo* .
Core/Battlegrounds: Fix log errors about creatures not found

Move "Battleground::GetBGCreature: creature not found for BG" error log to INFO level when the caller expects no creatures to be found, like on Battleground startup.
Closes #3538
Core/Dependencies: Upgrade to jemalloc-3.5.1
DB/Text: Added the missing page texts for the book "Portals are NOT Garbage Bins!"

Closes #3362
DB/Text: Added the missing page texts for the book "The Archmage Antonidas - Part I"