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.