Added license from LuaPack's main code (Lua).
Change sha1 implementation for one with a more suitable license for me (after some modifications).