Implement accout login support via accountname metadata

This is used to automatically identify users after netsplits or when
services are restarted.