separated AuthDialog into a trait, made default impl and method to read from web.xml