Refactoring multiple lua modules into luaPackages

Please, feel free to contest.
nitpick: it's better to use `throw` with friendly message: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/generic/default.nix#L54