Fix missing email addresses in search results.

Recently jboss.org excluded email results from searches unless you are authorized and request the user details explicitly.

Also seems the http authentication was flawed and stopped working thus fixed it by falling back to very basic auth instead.
Moved to lookup user emails the same way no matter where the username is found.