Use IdentityFactory in profile dialog.

Change-Id: I3ec770d446faeab2e9b0da14afb4d9e46ff16ee1
Reviewed-on: http://gerrit.dmdirc.com/2782
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>