add factories.xml file & gitignore cache/log dirs

refs #21457