Move chat events handler to chat module. Rewrite binding command to function.
Merge pull request #3 from Cjkjvfnby/chat_refactoring

Move chat events handler to chat module. Rewrite binding commands.