Merge pull request #1 from TheUnknownProgrammer/master

Optimized code and added little bug fixes.
Made the chat box scroll automatically when a new message is received
Merge branch 'master' of https://github.com/Dextrey/Crype
Created EncryptedChatSessionParameters and added a dialog for it.