Op 26148 support inputstream configs

Support passing an arbitrary InputStream (rather than just File objects) to ConfigurationFactory. This is necessary to avoid duplicating a bunch of code in Archmage.