Accept translated exceptions in exceptions.handle

If an exception with a translated message is thrown into
horizon.exceptions.handle, a UnicodeEncodeError is thrown in logging calls.

Also added in a test for this behavior.

Change-Id: I0bc71477d836daa0e27cdb10646b748fdc963f5d
Closes-Bug: 1284827
Sort security group rules by protocol and port

When adding new rules to a security group, it is useful to have the
rules sorted consistently across page reloads. This patch ensures
that the rules are sorted by protocol first, then by port. It is still
possible to manually sort the table using the client side capabilities,
but by default the table is now sorted by protocol and port, server
side.

Change-Id: I36d29461a8437f5689425706a7faae3399c6bf23
Closes-bug: #1326132
Add text to the Create Volume dialog's Type menu

The first value in the "Type" dropdown menu of the Create Volume dialog
was empty. This causes some confusion to the user because there was not
enough information as to why the value was empty or what would happen
when creating a volume with the empty type.

Adding text "No volume type" to the first value of the dropdown menu
explains that there will be no volume type associated with the volume
at creation time.

Closes-Bug: #1325701
Change-Id: Iaff5d413d4abe9c59d48a679094ea37930abc4c1
Remove warnings when generating docs

Sphinx generates a warning about having too few underlines under the
title "ADD_ANGULAR_MODULES". The generated docs are still correct
(title is generated with an underline), so this change only needed
to eliminate the warning messages.

Change-Id: I18e4cdfcb97bcb08ede98f921de1f975d9a64cf5
Closes-Bug: #1329562
Fix keystone warnings while building docs

When building the documentation via run_tests.sh, doc/source/conf.py
explicitly sets the DJANGO_SETTINGS_MODULE environment variable,
overriding any existing value that it already has. Furthermore, it sets
it to point to a settings file that does not use keystone v3, which
is expected by the tests (and is the source of the warning).  Note that
when running unit tests via run_tests.sh, a different settings file is
supplied which DOES use keystone v3.

Change the doc/source/conf.py to only set DJANGO_SETTINGS_MODULE if it
is not already set.  Change tox.ini and run_tests.sh to set
DJANGO_SETTINGS_MODULE to the same settings file used by the unit tests,
with keystone v3 support.

Change-Id: Ib297e4188f2426cf575300998bc9d50f36e48f4f
Closes-Bug: #1257725
Merge "Fix keystone warnings while building docs"
Merge "Remove warnings when generating docs"
Merge "Add text to the Create Volume dialog's Type menu"
Merge "Accept translated exceptions in exceptions.handle"
Merge "Sort security group rules by protocol and port"