Changes config/alias to be email (deduped)

Rather than using the user app details, this changes the alias used to
be the users username/email instead so it is clearer which config is in
use.

The emails are less likely to clash compared to the app ids.