lua*: refactor with luarocks infrastructure