webadmin: new instance type dialog + instance type list

Create the new/edit/delete instance type dialog + instance type list.
It is located under the configure dialog.
In this patch only one subtab is implemented: the general subtab

feature page: http://www.ovirt.org/Features/Instance_Types
Change-Id: I09722a0c3879268a6c683d88630440b6f8d8f794
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
webadmin: instance types: added support for NIC editing in instance type dialog

- Created a common parent BaseInterfaceCreatingManager for the VM and
  InstanceType interface creating managers.

- Implemented the corresponding logic to the new/edit behavior classes

The only profile which is available for an instance type is the Empty one
and it is available all the time, since the instance type is not cluster
dependent and at the creation of the instance type it is not known which
network profiles will be available when creating a VM from the instance
type.

feature page: http://www.ovirt.org/Features/Instance_Types
Change-Id: I65346da29c16629f0fa1f17a37218334e5e06c2f
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
frontend: widgets needed to support instance types

The instance types need widgets, which decorates existing widgets and add a
"attached" and "detached" icons next to them (with an ability to change this).

This patch introduces this widgets.

feature page: http://www.ovirt.org/Features/Instance_Types
Change-Id: I1fcc24e753fad19273ba3b16fba0b8be70bc4395
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
frontend: added support for attach/detach of instance types

The VM can be attached/detached to/from the instance type and there is a visual
indication which says if the specific VM is or is not attached.

This patch bridges the UnitVmModel's attachedToInstanceType property to
HasDetachable widgets setAttached method.

feature page: http://www.ovirt.org/Features/Instance_Types
Change-Id: Ibb4366376750ee4564fa6ff1e42bdfa4a8730d0f
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
frontend: introduced the detachable widgets into the VM dialogs

Wrapped the widgets which are supposed to be detachable by the detachable
widgets (for details on which this are please see the wiki) in the VM dialgos +
added the configuration needed to make this widgets detachable in new/edit VM
and new/edit pool dialogs

feature page: http://www.ovirt.org/Features/Instance_Types
Change-Id: I990325e4ec554f0cdd84f6a2bb8772f1d71c705f
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
webadmin: added support for copying the instance type fields to the VM

1: The fields which are defined as fields taken from instance type (for details
   please have a look at the feature page) has been moved from the specific
   behavior classes to InstnaceTypeManager.

2: Added support for detaching the VM from instance type if some field marked
   as special (for details on which fields are this) changes. Also attaches the
   VM back if the fields changes back
   (implemented in InstanceTypeAttachDetachManager)

feature page: http://www.ovirt.org/Features/Instance_Types
Change-Id: If02b2eaf23d96be736dce0bb88daeddca1ac8ef3
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
webadmin: Warning when deleting an instance type which is attached to a VM

Frontend part: when deleting an instance type which has VMs based on it, the
user will be warned and he/she will have to explicitly approve it.

Change-Id: I14bf7cecee9e9a2caa43c51e4f3e4682b63e0a1e
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>