Initial logging support.
More logging for the IdentityManager.
Merge branch 'feature/logging' into develop