Add logging values to the TR config struct, code to parse it, and a default value in case it is not configured
Replace calls to fprintf with new tr_* macros
Add syslog to the default main config (disabled by default)
Update examples to use logging macros