Add config generator

This fix adds a module for generating automatically the configuration
needed by the Loader in browser.