hgn: switched to using the plugin config object

Instead of using the global RequireJS config object, RequireJS provides
a plugin-specific config object with module.config()