Ensemble transport smoothing. Part I: Unified framework