Use an interface for Config, instead of depending on DynJSConfig.

Also, change RuntimeFactory to have static init() methods and return
factory instance types that know how to create both a Runtime and a
Config instance for a given runtime type.