Use SHA1 from LuaCrypto, if available

lua-websockets is used on embedded systems where OpenSSL (the library
LuaCrypto is based on) cannot be installed.

Close issue #38.
Merge branch 'upstream' into pr6
Merge pull request #40 from ntd/pr6

Use SHA1 from LuaCrypto, if available