Implement isUser/isGroup in each concrete Principal

This improves the documentation and removes unnecessary instanceof.
3 files changed