Fixed global name space pollution.
Fixed code style.
Added user name in chat windows.
Fixed naming consistency.