refactor magic-auth
magic-auth re-factor
more work on magic-auth
Merge https://github.com/friendica/red into zpull