Improved chat support

Chat support now adds opening/closing windows properly and double
action on the friends list
Improved chat window support