Started implementing some things for chatwindows and message handling.
Partially working chatwindow mechanism