Rewrite HTTP auth dialog code

The old code reached into the AlertDialog view using hidden
view ID constants to pull out the title. I've moved the dialog
to its own class and made it only use public APIs.

Change-Id: I84f576ece09ca802091175e1f928ae0be4a35d07
3 files changed