Huge rewrite of script:

* Full dialogs & chats receive
* Known users stored
* Attachment media downloading