First version to officially support Xresources

Fixed memory allocation bugs from my earlier commits, and implemented
the mechanism for converting Xresources properties to Putty properties.
Tested the new commit, and color scheme finally seems to convert
correctly.