Finalized SHA1 class and added documentation for secure cookies. Also cleaned up cdef.lua.