Infinite volumes quota shows as 'inf'

When the volumes quota is set to -1 (either in the defaults panel or for
a specific project) in project overview it shows as "inf" instead of "No
Limit".

Change-Id: Ia6ea4ca56008168a63527ef5c32375070bc2b467
Closes-bug: 1271629
Adding policy checks for glance

Additionally, added the missing policy checks on Image panel.

Change-Id: Ia9fa2fcdfb12f97ff27150a69d964be47ab717cf
Implements: blueprint image-rbac
Updated from global requirements

Change-Id: I469f7677d812cb54bf6b30c4149652ba419255b4
Fixes instance double delete via row_action

Currently when an instance is terminated, via the project/instances view,
a "Terminate Instnace" button appears in the row_action column.

This is due to a the TerminateInstance class's allowed() method always
returning true.

By putting logic in this method to only allow the terminate row_action
when an instance is *not* being deleted, we prevent the double delete from
occurring via row_action.

Change-Id: I23e759036c8f6c35331243717853c8a5e269fa75
Closes-Bug: 1278487
Refactor large method into 4 methods

In trying to reuse some of the code in views, I realized that the get method
for SampleView is quite long.
This change breaks this method into 3 functions.
The get method now is responsible for parsing HTTP arguments and formatting
AJAX response. The other functionality has been pulled out.
One of these functions (query_data) can be used by other views in the future.

Change-Id: I9a71bf62eb871ac9c082208e991402f0c700c668
Closes-Bug: #1278654
Merge "Infinite volumes quota shows as 'inf'"
Merge "Adding policy checks for glance"
Merge "Fixes instance double delete via row_action"
Merge "Updated from global requirements"
Merge "Refactor large method into 4 methods"