Introduce a preferences reader.

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