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
Merge pull request #8 from gecko32/Truewow

[TW] DB - Fix typo in apply and revert sql for set us up the bomb
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
Revert "Fix Living Bomb"

This reverts commit afdeed3af5c091f0cdf15c66eb3747ae0dd81d60.
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.
[TW272] - Core/Scripts: Set Algalon's respawn time to 7 days
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
[TW273] - Core/Spells: Move Rake's custom attributes to database
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