CLOUDSTACK-7295: VMs is Stopped state have no host ID, resulting in NPE
CLOUDSTACK-7006: Restore template ID in ROOT volume usages

Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
CLOUDSTACK-7193: handle domain ID being an int

Recent versions of libvirt (at least 0.9.8) will return an int when
queried for the ID of a domain, not a string. This breaks some parts of
the `security_group.py` script which expects a string containing an
int. Notably, this breaks the part handling VM reboots which is
therefore not executed.

Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
Merge remote-tracking branch 'origin/hotfix/4.4-6905' into 4.4
Merge remote-tracking branch 'origin/hotfix/4.4-7006' into 4.4
Merge remote-tracking branch 'origin/hotfix/4.4-7193' into 4.4