Reworking config creation for lxc and container manager