Add loadModule to plugin API