Add way to unregister a component. Implements #19.