Allow packages to register custom paths for their components

With updated tests.

This is BC with current packages with L4 structure.