LogClass: Moved log level string methods and improved LogHandler::TimeNow

LogHandler::LevelToString and LogHandler::LevelToIdent have been moved into the
LogLevel class as this seems like the natural place for them. I've also moved
the construction of time_t, struct tm and stringstream out of
LogHandler::TimeNow - this saves a lot of time as malloc/free isn't being
called each time.