Core: Declare some functions const and remove use of "using" directive 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