refactor model: Create a separated model for debugreport resource

To avoid duplicating code in model and mockmodel, the common code related to
debugreport resource was added to model_/debugreports.py and the specific code
for each backend was added to backend/debugreports.py and
mockbackend/debugreports.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for config resource

To avoid duplicating code in model and mockmodel, the common code related to
config resource (and its sub-resources) was added to model_/config.py
and the specific code for each backend was added to backend/config.py
and mockbackend/config.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for host resource

To avoid duplicating code in model and mockmodel, the common code related to
host resource (and its sub-resources) was added to model_/host.py and
the specific code for each backend was added to backend/config.py and
mockbackend/config.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for libvirt connection

Libvirt connection is a base facility for kimchi model, so each
resource model should be able to access it directly.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Move StoragePooldef from model to libvirtstoragepools.py

Separate StoragePoolDef (and its sub-classes) from model as it handles the xml
generation for libvirt storage pools.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for storagepool resource

To avoid duplicating code in model and mockmodel, the code related to
storagepool resource was added to model_/storagepools.py and
the specific code for each backend (libvirt or mock) was added to
backend/storagepools.py and mockbackend/storagepools.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for storagevolume resource

To avoid duplicating code in model and mockmodel, the code related to
storagevolume resource was added to model_/storagevolumes.py and
the specific code for each backend (libvirt or mock) was added to
backend/storagevolumes.py and mockbackend/storagevolumes.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for interface and network resources

To avoid duplicating code in model and mockmodel, the code to interface
resource was added to model_/interfaces.py and the specific code for
each backend was added to backend/interfaces.py and
mockbackend/intarfaces.py

And the code related to network resource was added to model_/networks.py and
the specific code for each backend (libvirt or mock) was added to
backend/networks.py and mockbackend/networks.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for template resource

To avoid duplicating code in model and mockmodel, the code related to
template resource was added to model_/templates.py and
the specific code for each backend (libvirt or mock) was added to
backend/templates.py and mockbackend/templates.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
refactor model: Create a separated model for vm resource

To avoid duplicating code in model and mockmodel, the code related to vm
resource was added to model_/vms.py and the specific code for each backend
(libvirt or mock) was added to backend/vms.py and mockbackend/vms.py

Signed-off-by: Aline Manera <alinefm@br.ibm.com>