Added syntactic suggar for registering plugin objects.