Added messages history

Now chat is saving 10 last user messages.
History can be controlled by arrow up and down.