Allow use effectIndex in spell_target_position.
Core: Declare some functions const and remove use of "using" directiv...

…e in a couple of files
Core/Logging: Performance-related tweaks to logging system

All sLog->out* functions (except outCommand atm) are replaced with
TC_LOG_* macros.
Memleak fix