Added generator for a ResourceFactory and an associated test case.  This
closes ticket #27.  This capability is currently untested with the GUI.