Allow registering C++-plugins from JS, make them usable and use the new api in ScriptLinkGeneratorPlugin