Fix middleware to not access session fields without user auth

Change-Id: Idc2b71aa9ca08570e870ac6e356211dfbaa7a726
Fixes: bug #1211535
Allow 'Manage Host' to show membership action

Now on the 'Manage Host' page shows also the membership
option to be opened on a new tab.

Change-Id: I73c431232650c00cb5dcbac5a96382a4247690cb
Closes-Bug: #1288280
Fix distribution pie chart

When all values are zero, distribution pie chart should render as
an empty chart.

Change-Id: I5b08f6ed3d65029b75c4bb23c162fc45ac4e45ff
Closes-Bug: #1288698
Fix Membership list loading bug

When loading a page on its own that contains the membership workflow,
the member lists would not get populated.

Also include a Selenium unit test to avoid similar regressions in the
future.

Change-Id: I5f23da271313f3ddf4acded221864ef5ba83f0eb
Closes-Bug: #1288270
Enforce length checking for instance name field

Add the max_length checking for instance name field in Update Instance.
Also changed the max_length value from 80 to 255 in Create Instance
to match the backend's restriction.

Change-Id: I52398a13a545449699a7209db49c06859daa9463
Closes-Bug: #1279590
Remove verbose_name from hidden fields

verbose_name is unnecessary for hidden field.
Some verbose_name does not have much meaning
(it is just a mirror of form field name), but
it is marked as translated and such strings
are difficult to translate. To address this,
this commit cleans up verbose_name of hidden fields.

Change-Id: I14fc242f90ce22abe5a0517b44968c2a98f97f48
Closes-Bug: #1291548
Host aggregates missing the metadata column

When the Host Aggregates table was moved to its own panel, we lost the
'metadata' column. Bringing it back. It contains useful information and should
be displayed in the table.

Change-Id: Ic87c31904ead459cbee2283268f8b30ce7d47acf
Closes-Bug: 1289466
Fix unbound local error in instance DetailView

If an error is raised in the instance DetailView we assume that a
redirect will be raised. However, certain exception classes will not
result in a redirect when handled by the standard Horizon exception
handler. If the error handler doesn't re-raise some sort of error,
control will be returned to the statement after the except block and
some of the necessary local variables may be unbound.

This fix simply ensures that an errors result in a redirect so that
we never end-up in a situation where the instance variable is unbound.

Change-Id: Ica9a09c9236bb50206277425633d63a8e7387401
Closes-Bug: 1291021
Remove I18N strings from test/settings.py

There is no need to mark strings in test/settings.py translatable.

Change-Id: I7ee8363ceb018a75fd6f785ed2fcef209068d883
Changed the label from Edit Rules to Manage Rules

In the Access & Security' category under Project tab,
for each security group, there is an option to edit
the rules. Clicking this button, lists all the rules
for a given security group and from there we can
add/delete rules. Since there is no support for security
group rule editing provided by Nova/Neutron, in this fix
the label of the 'Edit Rules' button was changed to
'Manage Rules' instead.

Closes-Bug: 1210513

Change-Id: I644c95b2f0147f5f59b543fd1eb9748ee4eb7e19
Selected instances are not deleted with pagination

Added get_full_url() method to get the absolute url
with the marker object required for pagination and
used it in form action with POST call on terminate
instance.
Overridden the get_full_url() method to encode the url
for ContainersTable and ObjectsTable classes which
inherits the DataTable class.

Change-Id: Idcf09e2e42bdfcbe8eb6d9f554d653fd7143bf8c
Closes-Bug: #1287093
Error message in create vol with a vol source

Updating the error message in the create volume form
for the case where the volume source is another volume
and the current volume size is less than the volume source

Change-Id: I53d5e9ffdea4344bafcaf3e0623e2e39c4c259be
Closes-Bug: #1291244
Update "dashboard" setting documentation

Updates documentation for the Horizon "dashboard" setting.
The option works as designed, but is incorrectly documented.

Change-Id: I4d11528c25ef43f91977321055b3660d144b3c90
Closes-Bug: 1056449
Make project left-side menu titles consistent

The left-side menus of project dashboard looks inconsistent:
some panel names have "Manage" and some do not.
This commit removes "Manage" from the titles.

Change-Id: I822d2fa483dd9f732e2ba805732e2f4bdf3225af
Closes-Bug: #1289538
Merge "Update "dashboard" setting documentation"
Merge "Host aggregates missing the metadata column"
Merge "Remove verbose_name from hidden fields"
Merge "Remove I18N strings from test/settings.py"
Remove get_resource_or_fake method in VPN panel

api/vpn.py now expands related resources now.
get_resource_or_fake method is no longer required.

Closes-Bug: #1292998
Change-Id: I45d049f7ccc3a4be7a6bfb08cbd8de650d4344de
Merge "Make project left-side menu titles consistent"