Add fetch account info

Add the ability to fetch account information for a single user.

Also:
* do some variable renaming for consistency
* search the entire ldap tree if no basedn is configured