Identity management for users, web apps, and directory servers