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