Move decompositions and helpers for jvp from functorch into core (#84358)
This refactor shouldn't change any behavior. At this point functorch still relies on the mechanism in DynamicLayerFront; we just moved some parts of it into core.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84358
Approved by: https://github.com/samdow