Add `Registry.prototype.remove`.

Makes it possible to remove a preregistered plugin.
Merge pull request #2048 from rwjblue/add-registry-remove

Add `Registry.prototype.remove`.