Implemented color conversion, fixed filepath

Previous version didn't handle filepath unmunging, resulting in most
Xresources files failing to load, this is now fixed. I also added a
hex-to-rgb conversion since most Xresources format seem to report colors
in hex format while Putty accepts them in RGB