Added PublicResXFileCodeGenerator custom tool

The PublicResXFileCodeGenerator produces code that is marked public
instead of internal.

Moved the file generation code out to a static method so that it can be
shared by both custom tools.