Automatic profile creation when logging in with ext. sources, some bugfixes