Add an alternative to singleton usage in ui utils

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