Added 'mainRequireConfigFile' option which extracts the config portion of the file and adds it to the template before the 'requireConfig'. Note that the extraction of the config is crude and should be based the implementation in r.js.