Issue #147: Storage UI NOT List Storage Automatically After Logging in

User will expect storage pools be listed automatically after he logs in.
The expected flow is:
1) GET /storagepools ==>
2) 401 returned, show log-in window ==>
3) Enter correct username and password ==>
4) Hide log-in window ==>
5) GET /storagepools

  The problem is Step 5) is missing. To avoid this, a wrapped version of
jQuery.ajax() was introduced in former patches: kimchi.requestJSON(). To
set a property "resend" to true in the Ajax settings object will trigger
Step 5) after the user is logged in.

  In this patch, resend with true is added to kimchi.listStoragePools().

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Issue #112: Guest reboot and power buttons do not have hover text

Add title for the buttons.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Create default pool and activate in model

For distros which don't have 'default' storage pool(e.g. rhel6.4),
kimchi check and create default pool and activate it,
this guarentee following vm and volume create success.

Signed-off-by: Bing Bu Cao<caobbu@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Activate default pool for mockmodel

Add this to make mockmodel behave in line with real model.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Prevent mockmodel from creating volumes for deactive pool

In real model, storagepool cannot be used to create volume unless
it's active, change mockmodel to keep same behavior with real one.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Add testcase for create volume for active pool

Test create volume with inactive pool returns 400,
and only successful when pool is activated.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Update the description StoragePool and StorageVolume in API.md

'capacity' is not applicable when creating a pool, remove it.
'available' is useful for the user to get free space of the pool.
'nr_volumes' added for user to get the numbers of volume in the pool.

Signed-off-by: Bing Bu Cao <mars@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Update Controller to add 'nr_volumes' into its info

* Add 'nr_volumes' to get number of volumes in the pool.
* Add 'available' to get free space of the pool

Signed-off-by: Bing Bu Cao <mars@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Change mockmodel to refresh pool volumes

Signed-off-by: Bing Bu Cao<caobbu@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Update model to support refresh and 'nr_volumes' info

Report 'nr_volumes' in storage pool lookup,
combine list volume and refresh together.

Signed-off-by: Bing Bu Cao<caobbu@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Add test for refresh and vol number display

Test vol number for inactive pool is 0 and real number for active pool.

Signed-off-by: Bing Bu Cao<caobbu@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>