Sketch: Registry plugins

Merge is going to have to be extracted as a separate function, I don't see how it could be generic.