use of LDAPUser and ldapdb to get lists info

In addition, I changed lists from function-based view to class-based
view and
grouped them:
1) Flexible and respects DRY principle
2) Reduce variables and code
Merge pull request #36 from dastergon/cbv

use of LDAPUser and ldapdb to get lists info
OpenID: fix failure to store selected e-mail address in the db.
Fix post-SSL login redirect.
Merge pull request #37 from mgorny/bugfixes

Bugfixes
Uncomment the DATABASES['ldapdb'] part

It used to break the tests, but it is fixed after the recent changes in ldapdb
Fix the snippet that gets the max uidNumber from LDAP

Since python-ldap does not sort the results, [-1] does not always return what
we expect, thus we need to use max() to get the expected result
Thanks to mgorny for the improvement, in PR#28
Merge pull request #39 from tampakrap/uidnumber_v2

Fix the snippet that gets the max uidNumber from LDAP
Merge pull request #38 from tampakrap/ldapdb-tests

Uncomment the DATABASES['ldapdb'] part
Make uWSGI auto-reload okupy on changes.
Merge pull request #42 from mgorny/uwsgi-reload

Make uWSGI auto-reload okupy on changes.
WSGI: Fix running in django's built-in server.

The 'uwsgi' module is only available when running from uWSGI.
Merge pull request #43 from mgorny/uwsgi-reload

WSGI: Fix running in django's built-in server.