Support for Lua 5.2

Lua 5.1 is still supported and working with this change.

I did make a change to ssl.lua to remove module() and replace it with putting the public functions in a table and returning the table. This may break existing scripts that rely on require putting ssl in to the global environment.