add register_as class method

Don't hardwire usage of PluginClasses, but hide it
behind `register_as` mathod.