Fixed chat state for non OTR
Added chat_session_on_window_open
Added chat_session_on_incoming_message
Moved chat_session_set_sent from message.c module
Use events for chat sessions
Refactored chat session creation
Removed static functions from chat_session