[IN-PROGRESS] Refactoring multiple lua modules into luaPackages

Please, feel free to contest.
lua5_2 here.