Get rid of %02X ugliness, and call add_keyfile since it compares public keys.

And get rid of some // comments

Fixed copying of public keystring when none are selected.

Add PreprocessorDefinitions for resource file for MSVC2010.