Finish CoreProfilesDialogModel.

This model should happily cope with the existing profiles wrapper
being rewritten and when the UI uses this model should mean no UI
changes required to add support.

Change-Id: Iea3b7838cef94514865ecb77064c133ca4556030
Reviewed-on: http://gerrit.dmdirc.com/3619
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
Add more unit tests.

Change-Id: I42d6704226b9efa81cf15ba38b3236eeafe3e250
Reviewed-on: http://gerrit.dmdirc.com/3620
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>