Support UUID user ids and improve email as login.

When switching on the 'Use email address as login name' option in
the security control panel, automatically update PAS to use
lowercase login names and migrate the existing login names.

Add 'Use UUID user ids' option in security control panel.

Both are part of PLIP 13419.