[dtensor] group public APIs together (#94524)
This PR groups distribute_tensor/module to api.py
rename some to non-public (ToTensor/FromTensor)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94524
Approved by: https://github.com/XilunWu