Support plugin unloading.

RabbitMQ 3.4.0 will allow plugins to be enabled and disabled without restarting the broker. This change makes sure the registry forgets the plugin type before we unload it.