Allow plugin registration using a decorator as well.

For example:

    @plugin_pool.register_plugin
    class DecoratorTestPlugin(CMSPluginBase): ...