Added logging capabilities to auth modules.
Refactored LDAP module for better granularity; added logging.
- Thanks to Tuan Nguyen for inspiration.