Wait/notify concept for UserProfileManager
Fixing some tests and improving the logs & documentation