Added support for "mainConfigFile" requirejs property (to read configuration from an external file)