Adding a flexible directory re-mapper for the bundle

We're currently using this convenient DirectoryReMapper in the search team to organize the dir structure of the bundles. Also seeing other team is also doing similar things. It's a quite general requirement.

Had a meeting with Ity, and since we're asked to remove all the custom functions in our BUILD files, it's better to get this convenient mapper into pants itself.