irclogs.py: improved logging including start+end with timestamp
irclogs.py: use subprocess instead of os.system

Added error handling and logging.