added get_config_factory, get_gateway_config and array_flatten function
dynamic registering for ConfigProvider and GatewayFactory
-