sha1.lua: Re-implemented w32_rot for bitlib

-- Uses left and right shifts with XOR according to the Wikipedia
expamples
-- Fixes issue #1
-- Added various debug prints