add luarocks infrastructure
refactor with luarocks infrastructure

(only pure Lua modules)