catch errors in wsgi.Middleware.

- Catch errors in wsgi.Middleware like done in wsgi.Applications.
- Add tests for test_middleware.
- Fixes bug 1128379.

Change-Id: I2e95595c392631aebf2682d4506e4dde78cd6d69
Rework S3Token middleware tests.

- Split between good and bad tests.
- Add more tests to get to 100% coverage.

Change-Id: Iffd00c2b557e54b122f29f8b0ec7f7ab7a92d16e
residual grants after delete action (bug1125637)

remove all applicable grants when role is deleted
(sql/kvs solution only)

Fixes: bug #1125637
Change-Id: I3a958c6d56739e37a95f6c713fab154827e9ceca
Remove un-needed LimitingReader read() function.

We only need one read function here.

Change-Id: I86533399d33fd5784b8b942acf37ea5c42363236
Add a dereference option for ldap

This allows proper dereferencing of aliased objects in an LDAP tree.

Fixes Bug #1153786

Change-Id: Ia09a99b7bca1ab055eb0c6dfa34138beca15bff0
Version bump to 2013.2

Change-Id: Iebf640e62ff3cfa666ff2f1e0670f515a9d1624e
Merge "Add a dereference option for ldap"
Move trusts to extension

Change-Id: I32b32fc5df8d8483ae8e99067f0655c13c6f520b
Merge "Move trusts to extension"
Make versions aware of enabled pipelines.

Updates to make our versions controller a bit smarter so
that it only returns information on API versions which are
actually running.

With these changes a user can disable the v2.0 or v3 API
versions in their pipeline, restart keystone, and then have
versions return information only for the versions which
are actually running.

This is important because auth_token now uses info from the
keystone versions controller (in some cases) to dynamically
select an API version.

Fixes LP Bug #1158470.
Change-Id: I0fa8a82f08e7247c44fb7f4ff8dbb7d4ad58b9cc
Merge "Make versions aware of enabled pipelines."
Imported Translations from Transifex

Change-Id: Iac5a165e7676afc20db9fff0059015938e6a7010
keystone commands don't print any version information

keystone-manage --version and keystone-all --version do
not show any version information. using the commons
version mechanism to set the version number

Fixes bug 1158783

Change-Id: Iade685a060cad8d9b3f2b80089d52faade43aba8
Merge "Rework S3Token middleware tests."
Rename trust extension.

Change trust extension from RH-TRUST to OS-TRUST so that the namespace
being used is for OpenStack, as opposed to a contributing company.  This
is also more consistent with namespacing used in other OpenStack APIs.

Some additional discussion about this is in this thread:
http://lists.openstack.org/pipermail/openstack-dev/2013-March/006876.html

Change-Id: I0fd869abe0f527c899808a4dde19dbd1fb6f32cd
Sync with oslo-incubator.

Up to date as of 575e74d352d685773513218a286979bb58920246.

Change-Id: I302bd832fdd4ee6a325b600aceba525b109bb4e1
use the roles in the token when recreating

related bug:
https://bugs.launchpad.net/keystone/+bug/1159987

Change-Id: I98e1b71d5b7de7867945294ebd569efd2cd7314b
bug 1159888 broken links in rst doc

Change-Id: Iad8e63ab57c927032e4bafab79c1f22cb485173f
Merge "keystone commands don't print any version information"
Use string for port in default endpoints (bug 1160573)

Change-Id: I940f331eee14e449333e5d0ba5d071836a496653