Code cleaning, removal of references to IRC in front end, move more code into tlsn_common.py