When creating a DOM element, trap DOM exceptions and report the uri/shortname involved.
Revisions to basic auth prototype.