[Extensions] Make CreateJSModuleFromResource public

This function is going to be used by SysApps to register the
common JS API.
Merge pull request #1034 from tmpsantos/create_module_from_resource

[Extensions] Make CreateJSModuleFromResource public