chat widget: Hide the info bar after a timeout
chat widget: Rename functions

s/not_connected/offline/
chat widget: Use one central insert_text function

This is better than having a lot of similar code in different places.