Merge pull request #2 from vti/master

Merge with origin.
Rewrite Digest::SHA1 to Digest::SHA.

I mean, that is time to remove Digest::SHA1 dependency.
Is obsolete in Debian (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594273)
When i see to releases of Digest::SHA1 and Digest::SHA is Digest::SHA1 obsolete.
Merge pull request #34 from tupinek/master

Rewrite Digest::SHA1 to Digest::SHA. Add on_connect cb to the client.