Initialize cached filenames lazily

Closes #22751.
Set name of SoftwareSpec to owner name
Set owner of resources to SoftwareSpec object
Clean up SoftwareSpec and Resource initializers