Use public domain SHA1 code, remove libgcrypt dependency
Merge branch 'master' into xep-0223