Startup and shutdown trajectories on aggregated time steps.
Currently, the startup and shutdown trajectories are distorted when time steps are aggregated, but it should be possible to implement the trajectory calculations in "periodicLoop" to form them separately for all intervals.
Pretty closely related to issues #28 and #32 (closed).