Add a space after the hash for block comments

Automatic enforcement of this rule is added in:
https://review.openstack.org/78119

bp more-code-style-automation

Change-Id: I167d8e2e648eaf553c586f225939daddfaeddda6
code hygiene; use six.text_type, escape regexp's, use key function

Some simple code clean up for code hygiene

Need to use unicode() rather than str() to properly handle non-ascii
characters, but to be PY2/PY3 compatible use six.text_type.

Regexp's were formed by string formatting using run-time substitutions
but the substitutions were not escaped. If the substituion contained
regexp metachars the regexp could fail.

The db key was formed by string substituion but this code was
duplicated in many places, introduce a method, key() to eliminate the
code duplication. At the same time introduce the dn() method to
transform the dn to an internal format. Currently the dn() method is a
place holder whose implementation will be added in a subsequent patch.

Change-Id: I1fbb8cf420606c77b1eed346376050f21790a8e1
revert deprecation of v2 API

For more info, see the openstack-dev mailing list:

    http://lists.openstack.org/pipermail/openstack-dev/2014-March/031016.html

Related Blueprint:

    https://blueprints.launchpad.net/keystone/+spec/deprecate-v2-api

Change-Id: Ic160da00f1c2fbcf0589b3e1c6c93f53a4e67b72
Enable lazy translations in httpd/keystone.py

This allows strings being returned in an HTTP response to be translated
into the language specified in the HTTP requests headers.

Closes-bug: #1297922
Change-Id: I8a671277f861075deddd1ee4cf5daca62a43fff7
Open Juno development

Bump preversion to 2014.2 to formally open Juno development.
The Icehouse release branch (milestone-proposed) will be cut
from the last commit before this one.

Change-Id: I16d88d311795868b83cd13afc87dc8fbff01bfb6
Merge "revert deprecation of v2 API"
Merge "Enable lazy translations in httpd/keystone.py"
Merge "Open Juno development"
Add placeholders for reserved migrations

This patchset should land immediately after the opening of the Juno
development cycle.

Implements: bp reserved-db-migrations-icehouse
Change-Id: Ic2f1e06043da34878b06bab5a10d173497fa1cb6
Merge "code hygiene; use six.text_type, escape regexp's, use key function"
Merge "Add placeholders for reserved migrations"
Merge "Add a space after the hash for block comments"
Remove extraenous instantiations of managers

There were cases where a number of the API managers were being
instantiated more than one time. This could cause a number of
odd edge cases where the managers would have different
configurations and/or different dependency injection results.

The managers should now be properly instantiated only once
unless explicitly required (e.g. testing the token provider
manager raises an exception in badly configured states).

Closes-Bug: #1294994
Change-Id: I1babb065065cb5b06899f59568020a1c38f1156c