Log module small cleaning
reduce the hot memory for LOG_x decision from 1.2MB to less than one mem page (4KB) (this is the most important improvement)
remove global visibility of log variables, remove circular .h dependancy
move declarations out from log.h to a better place
remove redundant declarations y using C macro, remove unused variables, remove unused log components, move information to smaller visibility