Use session identifiers for unique LDAP db aliases.

Since user binding is done per session, this should be both safer and
cleaner.
Use context managers to clean up settings.DATABASES after binds.