The pam_limits scripts were crufty and their usage a bit confusing, simplify the code and move it to Node.
Revamp the cgroups system to leverage the system cgroup setup for better performance.