Fixed some crashes. Seems that purple keeps calling the backed after the connection has closed, so bad pointer errors. We should set everything to NULL after freeing and the check for NULL values every time.

Added the time in received messages. Need to fix the hyperlink for images in messages.