fix bug in rdm_log
fix many bugs in tlogger.sh

I think it's ready for private beta :)
update ST2 settings for auto_upgrade_last_run