A computational framework for edge-preserving regularization in dynamic inverse problems