Allow ConfigFile to work on Paths.

Apply a bunch of style fixes.

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