TDB 335.57 - 2014/10/20
Build/CMake: CMake options cleanup after febb26d4b711762b1ee605705e7fa949b9871df1
Core/Misc: Remove dead code

Remove a double check on result of same function, with the 2nd being always true.

(cherry picked from commit e2c2bce90f1713136c2a256e423e5d136dab2389)
Core/Misc: Remove unsafe not thread-safe localtime() calls

Replace not thread-safe localtime() calls with thread-safe localtime_r().

(cherry picked from commit 5b08387792dae0afbf91ab74808dc978bf418bca)
Core/Misc: fixed a scenario when character factionchange create unexpected results, also moved packet generating code into unique methods
Merge branch '3.3.5' of https://github.com/TrinityCore/TrinityCore into master_revamp