Added implementation of authentication with Facebook (but not work yet). Changed encoding.