Merge pull request #2 from jinchung/refactoring

Refactoring clean exit
socket connections for new users, support diff msg types, mappings of words to users