No HttpOnly is set to the cookie for session id

The kimchi cookie for session id is not set to be HttpOnly.
It will cause cross-site scripting threats.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Use "font-weight: bold" in header texts

The header texts on the pages "Guests" and "Storages" were defined with
"font-weight: 600", which were rendered differently across different
browsers (e.g. Firefox displays it bold, Chrome displays it regular). In
order to display bold text consistently, we use now the property
"font-weight: bold".

Fix issue #194 (Header texts have different weights in different browsers)

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
vm-uuid: Using uuid in vmtemplate

Using uuid instead of vm_name in template can avoid problem
when vm renamed and its disks' names remain the same.
Or creating a new vm with the old name will fail
if we don't rename disk volumes.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
vm-uuid: Use uuid in screenshot generation

Using name to concatenate screenshot path will result in
a screenshot disorder when vm renamed to another and another vm
created for the old name, so change to use vm uuid.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
vm-uuid: store vm extra information indexed in uuid

Store vm's information indexed in uuid can avoid change
when vm name change.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
vm-uuid: make vm stats indexed in uuid

Update vm stats indexed in vm uuid.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
vm-uuid: Report uuid in controller

We want to expose uuid to user so that he can validate corresponding
screenshot, volumes are created.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
vm-uuid: Update testcases

Update testcases for screenshots, storage of VM.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Issue #199: Update templates list only after success of deleteTemplate

After deleting a template, the page "Templates" may reload itself to display the
updated templates list even if the delete operation hasn't yet been finished.
In that case, the list update procedure starts before the template is actually
removed from Kimchi's database, and that template is not removed from the view.

Instead of updating the templates list immediately after triggering the delete
operation (without waiting for it to finish), update it only after the delete
operation has finished successfully.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
Remove redundant interface in api.js

There are two vncToVM in api.js.Remove the redundant code from
api.js
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Add jquery-ui

Network implemantation will leverage jquery-ui.
Add jquery-ui content below to kimchi.
jquery-ui contains content below:
js content in jquery-ui.min.js
translation in jquery-ui-i18n.js
theme files like jquery-ui-min.css and image

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>
StoragePool: Pool name error message

If User try to create  a storage pool with an existing storage pool name,
error message shows specific pool name is already used.

Signed-off-by: Pradeep K Surisetty<psuriset@linux.vnet.ibm.com>

modified:   src/kimchi/model.py
isoinfo: Add support to identify distro and version from remote ISO file

Also scan remote iso file to identify distro and version as Kimchi supports
ISO streaming while creating a template.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
templates: Try to identify distro and version from remote ISO file

Try to probe ISO information while creating a template using ISO streaming.
Also add more acceptable protocols for ISO streaming as libvirt already has
patches for all those.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
isoinfo: Allow the main program probe a single ISO file (remote or local)

The current implementation of isoinfo only allows the user identifies the
version and distro from ISO files inside a directory by running:

    python src/kimchi/isoinfo <iso-dir>

It is interesting to allow the user run the tool to probe ISO information for a
single file, remote or local.

With this patch the user will be able to run:

    python src/kimchi/isoinfo.py <iso-dir>
    python src/kimchi/isoinfo.py <local-iso-file>
    python src/kimchi/isoinfo.py <remote-iso-file>

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
Add jquery-ui files to dist data list.

Add these files in Makefile.am

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>
Choose right icon for centos iso

Icon for centos is chosed to be icon-vm.png,
use its own icon instead.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Display error message on template delete failure

If some error occurs when a template is deleted, no message is displayed
to the user.

Display an error message so the user knows something went wrong.

A new translation entry has been added: "Failed to delete template.".

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
Enable pep8 code style checking

This patch enables pep8 code style checking. It can be invoked by running
"make check-local". This patch also finishes the pep8 clean of file
config.py.in. Once we make a file pep8 clean, we need add it to the whitelist.

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
pep8 cleanup for asynctask.py

This patch cleans up pep8 style issue in asynctask.py

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>