Use smart way to get colors.
Rewrite booster system

Fix linux compilation
This approach should be faster on the memory and looks a lil better.
Remove old boosts on load.
Fixup  "Refactoring FillXPlayersToBG"

This fixes commit 02c6487b0e3494fa25fc8f231efe0f5f16ebbfea.

Now using a combined queue.
No longer morph people, make code cleaner.
Don't change team when set player in other team, just change bgteam
Typo, fixes "red" targets
No need to initialize displayids, since they wont change

Use const_iterator (is faster)
Merge remote-tracking branch 'cmangos/master'
Fix queue after bg start.

Add tons of debug to this in case it fails.
Misc (unexplainable, huhu)
Security
Add GetAverageItemLevel function. Thanks TrinityCore for a descent version, but it wasnt good enough for me.
Fit player before he teleports.
This makes "double invitation" stop. Unsure why, and i don't care yet.
Add a separate queue for crossfaction bg's instead of merging. This is probably better.

This needs testing AND cleaning
Make stringreplace inlined.
Use mangos built in delayer for delaying SMSG_PLAYER_INVALIDATE

Rename mixed queue, since its both premade and mixed in the same (to make queues faster)
Namequeryopcode should take players from RAM as long as they exist there.
Hook forgetting to other packets which are sent by the client only when it has finished loading. This way we can be sure that the cache is cleared properly.

Clear cache 2ways for leaving as well. Doesnt consume much, but makes headache smaller for now.
Rename some vars.

Move some code.
Remove some debug lines.
Make shit work.