registry: support replacing component.
builtin modules: core, levers, gears.
remove deprecated api functions since behavior has changed.