The pam_limits scripts were crufty and their usage a bit confusing, simplify the code and move it to Node.