An Integrated Framework for Spectral and Temporal X-ray CT