Adds auto close script to authentication popup.
Removes authenticated identity field from Participant. Improves authentication events handling. Uses full JID for granting owner affiliation.