Fixed l10n bugs and added zh_CN translation

Some strings were not being localized because the string was already
translated at import time it seems.

Also added Chinese translation with help of Zhanghui
missed obvious bug when moving to new thread
Merge pull request #16 from mrunge/master

German translation
Merge pull request #17 from samos123/localization

Fixed l10n bugs and added zh_CN translation
Merge pull request #18 from ericpeterson-l/master

missed obvious bug when moving to background thread
Update openstack_auth/views.py

This patch fixes an issue when there are multiples tokens to be deleted, it ensures that the token passed in the header is always the active token.

Fixes bug: https://bugs.launchpad.net/horizon/+bug/1108393
Merge pull request #20 from linhuacheng/patch-2

Update openstack_auth/views.py
Fixing tests that broke in transition to python-keystoneclient v0.2
Merge pull request #22 from dklyle/master

Fixing tests to work with keystoneclient v0.2
Turn log level down for failure on delete token.

Delete token is not a published Keystone API, and deleting an expired token might also cause an exception. Instead of logging an error, this should fail silently and log it as just info so that it won't be flagged as error in the application.
Merge pull request #23 from linhuacheng/patch-4

Turn log level down for failure on delete token.
Support custom redirect url from the 'switch' view

The 'login' view currently accepts a parameter specifying the
URL to redirect to after a successful login (via ?next=). This
adds the same support for the 'switch' view by reusing a couple
of lines of code from the Django login view.
Merge pull request #24 from conkiztador/switch_redirect_to

Support custom redirect url from the 'switch' view
Bump version for new release.
Allowing for more complex combinations of permissions.  Will check for
logical AND of all top level permissions.  Will use logical OR for all
first level tuples (check that use has one permissions in the tuple)

Allows users with different roles to access a panel, while a user with
a third role won't be allowed to access the same panel.

Examples:
    Checks for all required permissions
    ('openstack.roles.admin', 'openstack.roles.L3-support')

    Checks for admin AND (L2 or L3)
    ('openstack.roles.admin', ('openstack.roles.L3-support',
                               'openstack.roles.L2-support'),)
Fix compatibility with Django < 1.4.3

The is_safe_url function used in a previous commit was introduced in
Django 1.4.3. I think breaking compatibility with the old version is
unnecessary, and Ubuntu has backported the security fixes so I'm
hesitant to require a new Django version.

This commit moves the function into openstack_auth.utils, and uses
it if the Django version is missing.
Merge pull request #27 from conkiztador/fix-django-dep

Fix compatibility with Django < 1.4.3
Merge pull request #25 from dklyle/master

Allowing more complex permissions checks
Updated User object for Django 1.5 compatibility.

Setting the pk attribute of the User object for Django 1.5 compatibility.

In Django 1.4, the id of the User object was used as the unique identifier. In Django 1.5, the pk is now used instead of id.



Here is the related code change in Django: https://github.com/django/django/commit/0eeae15056edf07f786d3be5b47c14ab62eacd31
Allow insecure authentication
Pass through the value of OPENSTACK_SSL_NO_VERIFY from settings.py to
keystoneclient. This allows connecting to servers with self-signed or
otherwise invalid certificates for testing purposes. It extends commit 8759ad4804271d0f86eed514a8007157f44d4ba4