Add template support to cgroups
More stuff