Turn on XOAUTH2 authentication and fix bug.
Merge pull request #9 from AntonGordienko/master

Turn on XOAUTH2 authentication and fix bug.