A huge refactor of control cgroup subsystem.

Fix all test.

Docker-DCO-1.1-Signed-off-by: Jialin Tian <himurakenshin54@gmail.com> (github: kenshin54)