Extract cgroups utilities to own submodule.

Initial extraction of methods, no functionality changes or additions.