Resolve #3188329 "Bugs upgrading from"
changes:
- makes externalauth module a dependency of o365_sso module and enables it
- migrates 0365_id field on users to the authmap
- if authmap match fails, it checks for an email match before creating a new account